What is the output of the following C11 code? (2, 5, 6)
int x = 15;
int y = 3;
if (x + y > 17 || y - x < 20)
{
y = x - y;
x = y + x;
cout << x << " " << y << " " << x + y << " " << y - x << endl;
}
else
{
x = y - x + y %5;
cout << x << " " << y << " " << x - y << " " << x + y << endl;
}
The answer to your question is provided in the image:
Comments
Leave a comment