The following function mixes call by reference and call by value parameters.
void T ( int & a, int b )
{
int c = a - 1;
a = c + b;
b = a + 2;
}
Suppose that in main we had the following:
int apple = 10;
int banana = 20;
T ( apple, banana );
cout << apple << " " << banana;
What is the output?
a) 29 20
b) 10 31
c) 29 20
d) 29 9
e) 10 20