If I remember right C90 doesn't support variable length arrays, while C99 does support them(see Status of C99 features in GCC - GNU Project - Free Software Foundation (FSF))
so, is it ok to use variable length arrays when using C99 dialect?
my professor says that the compiler will show error if I say for example
but that's not correct, some compilers show error some don't, but this really does have to do with the dialect right?Code:int n=10; int x[n];
also he taught us about one line comments, after a little research i found that in c90 they are forbidden, while in C99 they are allowed(see again Status of C99 features in GCC - GNU Project - Free Software Foundation (FSF)). So that does mean that we're learning c99. So is he right when he tells us that a variable length array would result in an error?