http://cpwiki.sourceforge.net/Implicit_main
Printable View
A true lie xDQuote:
However, many programmers (especially those of us at cboard) find this a bad thing. This type of declarations are also deprecated in C89 standard and in fact not supported in C99 and C++, which also makes it a bad idea. It is also a good programming practice that all functions should have an explicit return type, so in effect, main should really be:
Does MSVC/GCC rely on C99? xP
Not a lie. It was a lesson C learned from C++.
MSVC does not support C99, and GCC probably need some strict compiling in C99 mode to complain.