Mail Archives: djgpp/1997/10/08/08:31:14
Elton Fry wrote:
>
> Hugh Barrett wrote:
> > for (index = 0 ; index < 7 ; index = index + 1)
> for(index=0;index < 7; index++) //No vital but, does the same thing.
there is no difference.
> > return 0;
> exit(0); //Don't ask me why, may be someone else can fill us
return 0 from main is equivalent to calling exit(0). since main is a
function, (as a matter of style) i prefer returning from it unless
something happens and you have to terminate early. btw, the guy did the
right thing by not using void main, so i don't see the point of these
remarks.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -