|
From: Arnvid K. <ar...@ka...> - 2002-11-19 12:36:40
|
On Tue, 19 Nov 2002 11:47:21 +0000 (GMT) - Paul Ardeleanu <par...@ya...> wrote:
> Can Anyone tell me why this code WORKS FINE in DevC++?
> ANSI C says that it any Ansi compiler should give you an error (see K&R
> book).
> Thank you very much!
> Paul
>
> -----------------------------------------------------------
> main ()
> {
> printf("hello, world
> \n
>
>
> ");
> system("PAUSE");
> }
A good thing in c is always to do a
return 0;
before the last } in main... gcc and many other compilers complain if
you don't. so keep the compilers happy ;)
|