We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2474499 commit dbf0173Copy full SHA for dbf0173
009-int-main-no-return/README.md
@@ -4,7 +4,7 @@
4
5
- I would always write `return 0;` inside the `int main()` function because I thought it was required
6
- This may have been a force of habit from learning C in a computer architecture course in college
7
-- Turns out that `return 0;` is option, and not required in `int main()`
+- Turns out that `return 0;` is optional (and not required in `int main()`)
8
- The following code (with no return statement in the main function) will compile and run correctly
9
- In order to investigate why, we need to understand the compiler. (In this case Clang.)
10
0 commit comments