What is the value of y after the execution?y+= ++y + y-- + --y; when int y=8
128 Likes
y = 33
y+= ++y + y-- + --y⇒ y = y + (++y + y-- + --y)⇒ y = 8 + (9 + 9 + 7)⇒ y = 8 + 25⇒ y = 33
Answered By
78 Likes
If int y =10 then find int z = (++y * (y++ + 5));
Give the output of the following expression:a+= a++ + ++a + --a + a--; when a = 7;
Evaluate the following if the value of x = 7, y = 5:
x += x++ + x + ++y
Give the output of the following:
int x = 2, y = 4, z = 1; int result = (++z) + y + (++x) + (z++);