9/30/2005
Modern Programming Languages Chapter 12
16
Value and Reference Parameter
Passing Review
•
x = 2;
•
y = 3;
•
switch(x, y);
:
•
void switch(
float &a,
float &b)
•
{
float t;
t = a;
a = b;
b = t;
•
}