Why does this code not compile? 
Author Message
 Why does this code not compile?


> Why does this not compile:

> int main(int argv, char *argc[])
>   {
>   int num = atoi(argc[1]);
>   printf("%d", num);
>   int fd[2];

You can't freely mix declarations and statements in (current) C.

(You can in Java and C++ and, I believe, in Forthcoming C).

Chris "heaven knows why" Dollin

Sun, 17 Mar 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Why is this code fragment not compiling?

2. Why does not the code compile?

3. Why will MSDN code not compile?

4. Why affecting volatile struct does not compile ?

5. Why will VC++ not compile this?

6. why can not compile?

7. Why does this code even compile?

8. Why won't this code compile?

9. Newbie: this code is not compiled

10. COde will not compile - please help me

11. same code compiles in DOS but not in UNIX

12. Help me: simple code : I can not compile !


Powered by phpBB® Forum Software