Void Main

The CeePlusPlus standards say main() shall return an int. The construct "void main()" occupies an unregulated area between "vendor-specific extension" and "ill-formed".

I have extracted a list of the real reasons, by me (PhlIp) and a few others, why students should take int main more seriously:

void main ~~~. Use int main:

But see VoidMainIssues.


CategoryProgrammingLanguage CategoryLanguageImplementation


EditText of this page (last edited November 8, 2014) or FindPage with title or text search