Hello,Is the following example legal in current GCC compilation for C program? I thought the static array allocation can only used by a defined constant such as char buf[MAX_SIZE], where #define MAX_SIZE 10?
void DoSomthing(int size) { char buf[size]; ...... do something .... } Thanks. Jim