delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/16/09:35:19

Date: Tue, 16 Jul 1996 09:30:11 -0400 (EDT)
From: Nissim Chudnoff <nchudnof AT binx DOT mbhs DOT edu>
To: DJGPP Questions <djgpp AT delorie DOT com>
Subject: int main()
Message-ID: <Pine.LNX.3.93.960716092750.7208A-100000@binx.mbhs.edu>
MIME-Version: 1.0

A while ago, there was a conversation about 'void main()' vs. 'int main()'
and I wondered if:

void main()
{
   exit(1);
}

Is the same as

int main()
{
   return(1);
}

Thanks -

-*-*-*-*-*-*-*-*-*-                          *-*-*-*-*-*-*-*-*
* Nissim Chudnoff *-*-*-*-*-*-*-*-*-*-*-*-*-*- Klass of '99! *
*    <nchudnof AT mbhs DOT edu>   || <http://mmm.mbhs.edu/~nchudnof *
* -------------------------'`------------------------------- *
* "One Dilbert Is One Dilbert Too Many" -Nissim              *
* ---------------------------------------------------------- *
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

- Raw text -


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