Thread: c problems
View Single Post
  #3 (permalink)  
Old November 19th, 2005, 09:22 AM
saurabh1983in saurabh1983in is offline
Registered User
 
Join Date: Nov 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sir i understand that i need to do the initializations first and only constant values need to be passed as array index what my problem is that the compiler i have is a gcc and it is allowing me to run the following code which it should not.
main()
{
int a;
scanf("%d",&a);
int temp[a];
...
...
reurn 0;
}

Reply With Quote