?Moving to the next question prevents changes to this answer.
Question 2
What is printed by the following program? Show your work.
#include<iostream.h>
void main()
{
int x=6, y=13, z=7;
cout << "\n main values; x=" << x << " y=" << y << " z=" << z;
what(x,y);
cout << "\n main values; x=" << x << " y=" << y << " z=" << z;
what (z, x);
cout << "\n main values; x=" << x << " y=" << y << " z=" << z;
}
void what (int a, int &b)
{
if (a>4)
a=a+2;
else
a=a-3;
b=b-a;
cout << "\n what values: a="<<a << " b=" << b;
}