delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/17/12:48:21

Message-ID: <38096354.D18AA64E@montana.com>
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: return type for `main' changed to `int'
References: <84EFC73E5BDD300C DOT 85A7FCC32BD1270B DOT F7CB654E8161FA9A AT lp DOT airnews DOT net>
Lines: 13
Date: Sat, 16 Oct 1999 23:49:08 -0600
NNTP-Posting-Host: 208.4.224.50
X-Trace: newsfeed.slurp.net 940175368 208.4.224.50 (Sun, 17 Oct 1999 10:49:28 CDT)
NNTP-Posting-Date: Sun, 17 Oct 1999 10:49:28 CDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Rodeo Red wrote:
> 
> I searched for "return type for `main'" - no results
> I searched  for "return type"- found section 22.24 "What should the main
> function return in a C program? "
> Does not seem to apply because I'm using C++

So, when you are using C++, the process never returns with a completion
status? :)

"Conventionally, main() should return zero if the program terminates
normally and nonzero otherwise (para3.2) "
    The C++ Programming Language, 3rd Ed.  Stroustrup

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019