From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Quotes Date: Wed, 08 Oct 1997 07:29:40 -0400 Organization: Cornell University http://www.cornell.edu Lines: 25 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <343B6EA4.73CAB971@cornell.edu> References: <3439A959 DOT 80F8532E AT hotmail DOT com> <343A5D20 DOT 1AE7 AT iafrica DOT com> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0080.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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/