Yesterday I was helping a friend w/ some C progamming and he used to declare arrays in this way:
/*includes*/
int i;
scanf("%d",&i);
int array[i];
I don't think it's a legit way but the compilers gave no error... So is it right/possible to declare an array or there could be any problem with that kind of declaration?