delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp,comp.lang.c++,alt.comp.lang.learn.c-c++ |
Subject: | Re: More than one letter input |
Followup-To: | comp.os.msdos.djgpp,comp.lang.c++,alt.comp.lang.learn.c-c++ |
Date: | 4 Dec 2001 14:28:57 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 15 |
Message-ID: | <9uimj9$nmr$2@antares.lu.erisoft.se> |
References: | <91509768 DOT 0112031721 DOT 1481a4ee AT posting DOT google DOT com> <9ui7n3$bsg$1 AT planja DOT arnes DOT si> <9ui8hv$iuu$1 AT antares DOT lu DOT erisoft DOT se> <9ui9j0$d5h$1 AT planja DOT arnes DOT si> |
NNTP-Posting-Host: | lws256.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Goran Bervar (n DOT e DOT b DOT e DOT r DOT e DOT m AT yahoo DOT com) wrote: : "Martin Stromberg" <eplmst AT lu DOT erisoft DOT se> wrote in message : > That's news to me. And I think it's very very wrong. You must return : > something from main() if you want to have a predictable error from : > your program. : Nah. ISO-IEC 14882, §3.6.1-5 "[...]If contol reaches the end of main without : encountering a return statemnet, the effect is that of executing return 0;" Ok. So we have another difference between C and C++. Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |