Mind map
Chapter 4: Functions and Program Structure

Map content
Chapter 4: Functions and Program Structure
Functions
- Used to separate parts of the code.
- Declaration Form
- Can return any type like int, double, string, etc. or nothing (void).
External Variables
- They are used whenever a variable needs to be accessed by many functions.
Headers
- They're used to declare and define for the files.
Static Variables
- They are for the private use of the functions in their respective source files, and are not meant to be accessed by anything else.
Register
- A register declaration advises the compiler that the variable in question will be heavily used.
Block Structure
- Declarations of variables (including initializations) may follow the left brace that introduces any compound statement.
- Variables declared in this way hide any identically named variables in outer blocks, and remain in existence until the matching right brace.
- Declarations of variables (including initializations) may follow the left brace that introduces any compound statement.
Initialization
- In absence of explicit initialization, external and static variables are set to 0. Automatic and register are undefined.
Recursion
- Whenever a function calls itself.
The C Preprocessor
- File Inclusion
- Macro Substitution
- Conditional Inclusion
Images and files in the map
Information
- Description
- Mind Map on Chapter 4: Functions and Program Structure, created by Mauro Aguero on 25/08/2021.
- Created by
- Mauro Aguero
- Views
- 0
- Rating
More on Functions and Program Structure






