www.delorie.com/archives/browse.cgi | search |
Message-Id: | <2.2.32.19970225154850.006a7df0@mailhost> |
Mime-Version: | 1.0 |
Date: | Tue, 25 Feb 1997 13:48:50 -0200 |
To: | fighteer AT cs DOT com |
From: | Eyal Ben-David <eyalb AT aks DOT com> |
Subject: | Re: QUESTION: General Syntax |
Cc: | djgpp AT delorie DOT com |
At 11:47 PM 2/24/97 -0800, you wrote: >Take off that semicolon and the compiler will be much happier. It's >even happier than that when you explicitly define main to return int, >but that's optional in C. True. > In C++, you _must_ explicitly define main()'s return type. False. C++ is like C in this matter (i.e. default return type is int) Eyal.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |