Computer Science, asked by shourya81, 6 months ago

int x=5, y=4, z;
z= (++x + ++y) * y++ % 2; ​

Answers

Answered by Oreki
0

After Execution:

z = 1

Explanation:

As, x = 5 and y = 4,

> z = (++x + ++y) * y++ % 2

> z = (6 + 5) * 5 % 2

> z = 11 * 5 % 2

> z = 55 % 2

> z = 1

Answered by anindyaadhikari13
1

Question:-

  • Find the value of z.

Solution:-

Given,

x=5,y=4

z=(++x + ++y) *y++%2

Or,

z=(6+5)*5%2

Or,

z=55%2

Or,

z=1

Answer:-

z=1

Similar questions