Chapter 5: Functions
- Ex5_01.cpp
- Declaring, defining, and using a function
- Ex5_02.cpp
- A futile attempt to modify caller arguments
- Ex5_03.cpp
- A successful attempt to modify caller arguments
- Ex5_04.cpp
- Passing an array to a function
- Ex5_05.cpp
- Handling an array in a function as a pointer
- Ex5_06.cpp
- Passing a two-dimensional array to a function
- Ex5_07.cpp
- Using an lvalue reference to modify caller arguments
- Ex5_08.cpp
- Using a reference to modify caller arguments
- Ex5_09.cpp
- Using an rvalue reference parameter
- Ex5_10.cpp
- Reading command line arguments
- Ex5_11.cpp
- Handling a variable number of arguments
- Ex5_12.cpp
- Pointer to a local variable
- Ex5_13.cpp
- Returning a reference
- Ex5_14.cpp
- Using a static variable within a function
- Ex5_15.cpp
- A recursive version of x to the power n