Skip to content

Commit

Permalink
Merge pull request adambard#1067 from MoreMoschops/master
Browse files Browse the repository at this point in the history
Neither gcc nor clang accept void main.
  • Loading branch information
vendethiel committed Apr 26, 2015
2 parents fcd17c2 + 7d5368e commit d394fcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions c++.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ one of the most widely-used programming languages.
// variable declarations, primitive types, and functions.

// Just like in C, your program's entry point is a function called
// main with an integer return type,
// though void main() is also accepted by most compilers (gcc, clang, etc.)
// main with an integer return type.
// This value serves as the program's exit status.
// See http://en.wikipedia.org/wiki/Exit_status for more information.
int main(int argc, char** argv)
Expand Down

0 comments on commit d394fcc

Please sign in to comment.