1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-10 08:44:28 +02:00

Merge pull request #1511 from awalGarg/patch-1

[c/en] clarify that args' names are not required in proto
This commit is contained in:
Levi Bostian
2015-10-15 13:00:53 -05:00

View File

@@ -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.