Must main return a value?

Walter Murray walterm at hpwrce.HP.COM
Fri Jun 28 01:49:08 AEST 1991


Is the following program strictly conforming?

   int main(void) { return; }

Many people have written that the main function must return a value.
I can't find such a requirement in the Standard.  I have read 2.1.2.2.3
and 3.6.6.4.  Am I missing something?

Walter Murray



More information about the Comp.std.c mailing list