delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/28/22:30:24

From: "H.W. Stockman" <hwstock AT swcp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading the command line
Date: Tue, 28 Oct 1997 18:03:20 -0700
Organization: Lentil Sorbet, Inc.
Lines: 16
Message-ID: <34568B58.7B61@swcp.com>
References: <62pk3q$3q$1 AT panther DOT rmplc DOT co DOT uk> <34505783 DOT 3DE3 AT swcp DOT com> <3450663B DOT 4202 AT rug DOT ac DOT be> <62q0ic$73f$1 AT panther DOT rmplc DOT co DOT uk> <345088C1 DOT E26 AT rug DOT ac DOT be>
Reply-To: hwstock AT swcp DOT com
NNTP-Posting-Host: pm4-23.swcp.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Vik Heyndrickx wrote:
> 
> Jon Seanor wrote:
> >
> > >And the return type of main is int, not void. That should be in any text
> > >book too.
> >
> > Only if you want to return something!
> 
> The standard tells that the return type of main is int and not void.

Many compilers will gleefully let you declare
void main(){}
...without a single complaint.  However, the consequences
of mixing order of argc and argv[] are likely to be
more significant.

- Raw text -


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