Parameter Passing |
||||||||||||||
* |
All parameter passing in C is by value, that is, when a
function is called the parameter values from the calling
function are copied into temporary storage |
|||||||||||||
* |
||||||||||||||
* |
||||||||||||||
void initialize (int x) { |
||||||||||||||
we can do anything we like to x inside this function.
The calling function won't see any of these changes.
It provides only the initial value of x |
||||||||||||||
} |
||||||||||||||
but consider :::::::: |
||||||||||||||
January22, 1999 |
Page 5 |
copyright UoA |