0
Why this also works in C ??? Array memory should be allocated at run time ???
2 Answers
+ 7
It doesn't work. n needs to be a constant expression. Just because the compiler doesn't show a warning or an error doesn't mean that the syntax is correct
+ 2
Take a look here:
https://en.m.wikipedia.org/wiki/Variable-length_array