www.delorie.com/archives/browse.cgi | search |
Date: | Tue, 25 Jun 1996 19:29:16 +0800 (GMT) |
From: | Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph> |
To: | Tom Wheeley <tomw AT tsys DOT demon DOT co DOT uk> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Does DJGPP conform to ANSI-C standards with the for () ? |
In-Reply-To: | <835650546snz@tsys.demon.co.uk> |
Message-ID: | <Pine.SGI.3.93.960625192846.1245A-100000@gibson.eee.upd.edu.ph> |
MIME-Version: | 1.0 |
On Mon, 24 Jun 1996, Tom Wheeley wrote: > > This is not valid C code for at least several reasons: > > > > 1) main must return int. void is not acceptable. > > True > > > 2) main must take either void parameters or an int and a char **. > > an undefined param list is not acceptable. > > Are you sure? I was under the impression that it was allowed by the ANSI > standard due to the large amount of code which would become undefined. > Thus the smallest strictly conforming program is > > main(){} Nope. A function without a declared return type is assumed to return 'int'
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |