Computer Science, asked by Naira387, 8 months ago

state the output, x=-4, y=12 , z=0;z=++x -y++%6*(--y+x++)
try to solve it quick ot is urgent..plz ​

Answers

Answered by Oreki
0

After Execution:

z = -3

Explanation:

As, int x = -4, y = 12, z = 0;

> z = ++x - y++ % 6 * (--y + x++)

> z = -3 - 12 % 6 * (12 + (-3))

> z = -3 - 12 % 6 * (9)

> z = -3 - 0 * 9

> z = -3 - 0

> z = -3

Answered by anindyaadhikari13
2

Question:-

  • Write the output of the following code snippet.

Steps:-

Given,

x = -4

y=12

z=0

Now,

z=++x - y++%6*(--y+x++)

Or,

z=-3-12%6*(12-3)

Or,

z=-3-0*9

Or,

z=-3

Output:-

z = -3

x = -2

y = 12

Similar questions