delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/04/10:12:26

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Bart Kowalski" <me AT nospam DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.lang.c++,alt.comp.lang.learn.c-c++
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> <9uimj9$nmr$2 AT antares DOT lu DOT erisoft DOT se>
Subject: Re: More than one letter input
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Message-ID: <wa5P7.21669$yE5.1335461@news20.bellglobal.com>
Date: Tue, 4 Dec 2001 09:45:50 -0500
NNTP-Posting-Host: 65.94.113.20
X-Complaints-To: abuse AT sympatico DOT ca
X-Trace: news20.bellglobal.com 1007476508 65.94.113.20 (Tue, 04 Dec 2001 09:35:08 EST)
NNTP-Posting-Date: Tue, 04 Dec 2001 09:35:08 EST
Organization: Bell Sympatico
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:9uimj9$nmr$2 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:
> : "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++.

The new C standard allows this as well.


Bart.



- Raw text -


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