|
course.wilkes.edu/CS125Labs |
||||
Experiment 5: Reference Parameters
The Question: If a function alters the value of one of its reference parameters, what affect will that have on the corresponding argument?
Hypothesis: Review the reference parameter definition,
and then construct a hypothesis.
void Change(int & param1, int & param2, int param3);and in the definition:
void Change(int & param1, int & param2, int param3)
{
param1 = 1;
param2 = 2;
param3 = 3;
}
Observation: Translate and execute your program. What is displayed ?
|
Home Membership
|
|||
|
Last update: Wednesday, August 23, 2000 at 3:15:26 PM. |
||||