delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/04/06:03:39

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Goran Bervar" <n DOT e DOT b DOT e DOT r DOT e DOT m AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.lang.c++,alt.comp.lang.learn.c-c++
Subject: Re: More than one letter input
Date: Tue, 4 Dec 2001 11:47:00 +0100
Organization: ARNES
Lines: 19
Message-ID: <9ui9j0$d5h$1@planja.arnes.si>
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>
NNTP-Posting-Host: lj3-6a.dial-up.arnes.si
X-Trace: planja.arnes.si 1007462816 13489 194.249.2.21 (4 Dec 2001 10:46:56 GMT)
X-Complaints-To: abuse AT arnes DOT si
NNTP-Posting-Date: Tue, 4 Dec 2001 10:46:56 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Martin Stromberg" <eplmst AT lu DOT erisoft DOT se> wrote in message
news:9ui8hv$iuu$1 AT antares DOT lu DOT erisoft DOT se...
> Goran Bervar (n DOT e DOT b DOT e DOT r DOT e DOT m AT yahoo DOT com) wrote:
> : Note: you don't have to return a value in main even if it is declared to
> : return an int - return 0 is assumed. But most compilers will generate a
> : warning if you omitt the return statement so no harm is done if you
write:
>
> 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;"

goran



- Raw text -


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