summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2015-10-15 13:00:53 -0500
committerLevi Bostian <levi.bostian@gmail.com>2015-10-15 13:00:53 -0500
commitc1982009c782849e4e47dff96ac2f9f477f98817 (patch)
treed80f23ac69a2917fb828b1889451ecbc424a832e
parentb86ea4d51d1edc97b918d8ec5f48135ed717297a (diff)
parent223c8140a0392f3a0a33b93222597de7a68679e4 (diff)
Merge pull request #1511 from awalGarg/patch-1
[c/en] clarify that args' names are not required in proto
-rw-r--r--c.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/c.html.markdown b/c.html.markdown
index fb77ca50..d7a21e58 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.