diff options
Diffstat (limited to 'c.html.markdown')
| -rw-r--r-- | c.html.markdown | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/c.html.markdown b/c.html.markdown index fb77ca50..bfdf276c 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -54,6 +54,8 @@ int function_2(void);  // Must declare a 'function prototype' before main() when functions occur after  // your main() function.  int add_two_ints(int x1, int x2); // function prototype +// although `int add_two_ints(int, int);` is also valid (no need to name the args), +// it is recommended to name arguments in the prototype as well for easier inspection  // Your program's entry point is a function called  // main with an integer return type. @@ -74,6 +76,9 @@ int main (int argc, char** argv)    ///////////////////////////////////////    // Types    /////////////////////////////////////// +   +  // All variables MUST be declared at the top of the current block scope +  // we declare them dynamically along the code for the sake of the tutorial    // ints are usually 4 bytes    int x_int = 0; | 
