Array of non-constant size: Why does this even work?

<>

This question already has an answer here:

Answers


Apparently one can declare variable length arrays in C99, and it seems GCC accepts then for C++ also.

Variable-length automatic arrays are allowed in ISO C99, and as an extension GCC accepts them in C90 mode and in C++. These arrays are declared like any other automatic arrays, but with a length that is not a constant expression.

You learn something every day .. I hadn't seen that before.


Need Your Help

how to three corner radius of Image view

objective-c io

how to draw image corner radius only three corner look at my image.

Display Image in Laravel 4

php mysql laravel

I am trying to display a image which retrieved from MySQL databases, I received the image successfully but how to display it on Bowser