Computer Science, asked by 25mahikaswan, 6 months ago

taking x=5 , y=4 give the final values of x and y after the following expression is evaluated:

x += x++ - ++y % y- -;​

Answers

Answered by Oreki
0

Answer:

10

Explanation:

> x += x++ - ++y % y--

> x += 5 - 5 % 5

> x += 5 - 0

> x = x + 5

> x = 5 + 5

> x = 10

Answered by anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Answer:-}

Given,

x=5,y=4

Now,

x+= x++ - ++y%y--

Or,

x+= 5-5%5

Or,

x+=5-0

Or,

x+=5

Or,

x=5+5=10

Therefore,

x=10

y=4

Similar questions