mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Add variety to function prototypes.
This commit is contained in:
parent
981cc871a4
commit
38de481179
@ -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
|
// Declare function signatures in advance in a .h file, or at the top of
|
||||||
// your .c file.
|
// your .c file.
|
||||||
void function_1();
|
void function_1(char s[]);
|
||||||
void function_2();
|
int function_2(void);
|
||||||
|
|
||||||
// Must declare a 'function prototype' before main() when functions occur after
|
// Must declare a 'function prototype' before main() when functions occur after
|
||||||
// your main() function.
|
// your main() function.
|
||||||
|
Loading…
Reference in New Issue
Block a user