Hi ;
Regarding to initializing array with size variable isn't allowed in c, what confusing me is that lets assume I have like this-
int n=add(5,6); //add is a function type int that return 6+5 which it's11
int array[n];
so this isn't allowed for allocating array, anyone could help me why? thanks alot.

I known is variable, but once the compiler read int array[n] , the variable n is already having value which is 11 ..so it's like int array[11] and it should be legal ..

thanks alot