What is the output of the following program?
#include using namespace std;void Try( int&, int );int x;int y;int z;int main(){ x = 1; y = 2; z = 3; Try(y, x); cout < x="">< '="" '="">< y="">< '="" '="">< z=""><> return 0;}void Try( int& a, int b ){ int x; x = a + 2; a = a * 3; b = x + a;}
using namespace std;
void Try( int&, int );
int x;
int y;
int z;
int main()
{
x = 1;
y = 2;
z = 3;
Try(y, x);
cout < x="">< '="" '="">< y="">< '="" '="">< z=""><>
return 0;
}
void Try( int& a, int b )
x = a + 2;
a = a * 3;
b = x + a;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here