Module 7 · Functions, Scope and Storage Classes
Parameters, Return Values and Prototypes
Free with an accountReading
Zara's school calendar needs the leap year rule in four places. February's length, a year's length, the next leap year and a date check all ask it.
Checking what this lesson needs for you…
What is inside Parameters, Return Values and Prototypes
- Parameters: boxes filled by the call
- return hands a value back
- Prototypes: the shape before the call
- What GCC 12 does without one
- (void) means no parameters
- Leave early with return
- A function must return on every path
- bool functions and names that ask a question