The following code outputs :
x = 1, y = 0, z = 3
if (x && (++y || (z % x == 0))) cout << x + y + z;
else cout << x+y+z+1;
6
5
4
Runtime error
Boost your performance with adaptive practice tests
Practice every concept in the syllabus
Compare your speed and accuracy with your peers
Download the app and practice on the go