mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #1067 from MoreMoschops/master
Neither gcc nor clang accept void main.
This commit is contained in:
commit
d394fcc96a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user