summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authorAwal Garg <awalGarg@users.noreply.github.com>2015-10-14 20:41:36 +0530
committerAwal Garg <awalGarg@users.noreply.github.com>2015-10-14 20:41:36 +0530
commit223c8140a0392f3a0a33b93222597de7a68679e4 (patch)
tree6299080722594c931c08eba066f4f7b75e72c5c3 /c.html.markdown
parent8ec133b29595b8dac963eafa63ab0c479e37a3c1 (diff)
clarify that args' names are not required in proto
with obligatory conventional warning
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 3339032f..7c64cffe 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.