Step Into C · Lesson 6 · Control Flow
Functions
Definitions, prototypes, pass-by-value, recursion and static locals.
- ~30 minreading and coding
- 4missions
- membersaccess
- Clanguage
Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
A function is a named, reusable piece of code that takes parameters and can return a value. Real C programs, including the whole Windows API, are made of thousands of functions.
In this lesson
- Why functions?
- Declare before use: prototypes
- Pass by value
- Local variables and scope
- static local variables
- Recursion
- Bigger integers
Missions
- Square
- Max of three
- Recursion
- Remember me