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

hello i m a beginer at c language

i have a gcc compiler on suse linux 9.3
 i tried to compile following code and it did sucessfully
main()
{
int a;
scanf("%d",&a);
int num[a];
...
...
}

while i beleive that there are 2 problems
1. all initializations should be the first thing to do.
2. array declarations should only be static.

i confirmed that i do not have a c++ compiler.
please help me out.
Reply With Quote