www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/06:48:15

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>
Subject: RE: Local Variables
Date: Thu, 27 Aug 1998 11:45:52 +0100
Message-ID: <000201bdd1a7$dc715380$8b4e08c3@arthur>
MIME-Version: 1.0
Importance: Normal
In-Reply-To: <35E494DB.530FD2D8@alcyone.com>

> > void main()
> > {
> >         int a;
> > }
> > 

...

> Considering that what you were trying to do is a fundamental part of the
> language that everyone uses, there is something else wrong with your
> declarations.  Since you didn't give an actual example of something
> which didn't work and what the errors were, it's hard to help you more
> than that.
> 
> main should always be declared to return int, by the way.

And according to ANSI, should be terminated by something similar to a "return 0;"

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819 

- Raw text -


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