From 2037263dbafa440fbc775346af3f16bebbe31672 Mon Sep 17 00:00:00 2001 From: matthewoelke Date: Tue, 18 Dec 2018 12:03:49 -0600 Subject: [PATCH] Update index.md (#27467) Added note that main function is only called once. --- guide/english/c/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/c/index.md b/guide/english/c/index.md index 394000b6abe..c0a0a6132ea 100644 --- a/guide/english/c/index.md +++ b/guide/english/c/index.md @@ -45,7 +45,7 @@ int main(void) { } ``` -This code declares the main function. The main function is special- it will always get called and is always the 'main' part of your program. If this isn't in your program, your program can't run and won't compile. +This code declares the main function. The main function is special- it will always get called exactly one time and is always the 'main' part of your program. If this isn't in your program, your program can't run and won't compile. Starting the function declaration with `int` means that this function will give an `int` or integer value when it compiles the code- it's this function's output. `int` is the 'integer' data type, and integers are whole numbers like -3, 0, or 18. So we know that this code will run, and when it's done, it will give us back an integer. By convention, the integer has a `garbage value`.