- C/C++ functions are very similar to those in math.
The difference is that in math, functions are expressed in terms of
formulaes. In C/C++, they are expressed in terms of commands.
- Functions, either in math or in program, will return a value.
In C/C++, the statement return does this, as we
have observed.
- The value returned by return statement is
further examined by the caller. The caller of our main
funciton is the operating system.
|