11. The program below has a function named Change. Fill in the values of all variables before and after the function is called. Then fill in the values of all variables after the return to the main function. (If any value is undefined, write u instead of a number.)
#include <iostream.h>
void Change( int, int& );
int main()
{
int a;
int b;
a = 10;
b = 7;
Change(a, b);
cout << a << << b << endl;
return 0;
}
void Change( int x,
int& y )
{
int b;
b = x;
y = y + b;
x = y;
}
Variables in main just before Change is called:
a _____
b _____
Variables in Change at the moment control enters the function: