Merge pull request #1067 from MoreMoschops/master

Neither gcc nor clang accept void main.
This commit is contained in:
ven 2015-04-27 00:52:02 +02:00
commit d394fcc96a

View File

@ -32,8 +32,7 @@ one of the most widely-used programming languages.
// variable declarations, primitive types, and functions. // variable declarations, primitive types, and functions.
// Just like in C, your program's entry point is a function called // Just like in C, your program's entry point is a function called
// main with an integer return type, // main with an integer return type.
// though void main() is also accepted by most compilers (gcc, clang, etc.)
// This value serves as the program's exit status. // This value serves as the program's exit status.
// See http://en.wikipedia.org/wiki/Exit_status for more information. // See http://en.wikipedia.org/wiki/Exit_status for more information.
int main(int argc, char** argv) int main(int argc, char** argv)