English
Topic 3. Functions: parameters, pass by reference, overloading, recursion
Goal: learn to design functions; choose how to pass parameters; implement overloading, recursion and argument validation
Lecture contents
- Functions and parameter passing — A function as a separate complete action · Pass by value · References and const references
- Overloading and results — Overloading and default arguments · Returning several values · Lifetime, static and constexpr
- Recursion and program organization — Recursion and the call stack · Organizing functions and program arguments
- Designing function interfaces — Step-by-step interface design · Common mistakes