Cpp2 Functions
Cpp2 Functions
Lecture 2
Friday 11 July 2003
Chapter 3, Functions
built-in functions
function prototype, function
definition and use
storage class and scope
recursion
inline function
default argument, function
overloading, template
Math Library Functions
Function prototype
function definition
use of function
argument passing in C++
C.f. Fig.3.3
Function Prototypes
Format
void maximum(int, int, int);
Location of function prototype
in file
When can we omit function
prototype?
Advantage of prototype
Storage Classes