Mail Archives: djgpp/1997/11/01/11:06:01
Peter Palotas wrote:
> If this is so, why doesn't the compiler generate an error for
> declaring
> main() as 'void main()'?
Are you seriously suggesting that anything you can compile with "the
compiler" (never minding that people use different compilers) without it
emitting warnings or errors is ANSI C compliant? Think carefully before
answering.
main must return int. There is no quibbling about it; it is clearly
specified in ANSI C section 5.1.2.2.1.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"After each war there is a little / less democracy to save."
/ Brooks Atkinson
- Raw text -