delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/04/05:47:52

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 10:29:19 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 13
Message-ID: <9ui8hv$iuu$1@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>
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:
: 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.


Right,

						MartinS

- Raw text -


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