C++ about dynamic array on stack
问题 So far as I know,C++/C doen't support dynamic array on stack . In the following delcaration : int data[n] ; // if the n is not decided at compiling time ,this leads to error But recently , I read some other guys code as following: //** It seems the n number can not be decided at compling time,but when I run it , if i fprintf the formation, each time i got the correct array size !!!!!! the G++ version is 4.7.1 Is this because the G++ 4.7.1 support C++11 x which allow dynamic array? **//