From 38de481179484d597d44fa934f87a5f21ebfaa6c Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Sat, 23 Nov 2013 22:40:52 -0600 Subject: Add variety to function prototypes. --- c.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c.html.markdown b/c.html.markdown index ee35cdd2..b4a874d3 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -38,8 +38,8 @@ enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT}; // Declare function signatures in advance in a .h file, or at the top of // your .c file. -void function_1(); -void function_2(); +void function_1(char s[]); +int function_2(void); // Must declare a 'function prototype' before main() when functions occur after // your main() function. -- cgit v1.2.3