"exit 0;" - or - "exit (0);" ?

braner braner at batcomputer.tn.cornell.edu
Mon Nov 17 14:29:41 AEST 1986


[]

While K&R explicitly say that exit() is a function, I commonly see
the parens dropped.  Is that "legal"? Does it work on existing compilers?
And while I am asking:  how's "if (foo) {...}" vs. "if foo {...}" ?
(in the case where "foo" is a variable, say an int used as a flag.)

- Moshe Braner, Cornell Univ.



More information about the Comp.lang.c mailing list