There are no variable length arrays in standard C++. We have std::vector
In C, support for variable length arrays is an optional feature.
If VLA types are supported by a C implementation, the lifetime of a VLA ends when its declaration goes out of scope; its memory is automatically released at that time.