Computer Science, asked by rishabhkothari9e17dp, 7 months ago

evaluate the following if a=10.- a-=a++ + a*5- --a%a and show the steps.

Answers

Answered by rudra575
0

Explanation:

then second step it will

10 + --b ( here, for the post-increment a will return/give previous value then a will increment a's value, now the expression is 10 + --b, a=11, b=20)

then third step it will

10 + 19 ( here for the pre-increment b increment 1 then b will return/give the value, now expression is 10 + 19, a= 11, b=19)

then finally expression will 10 + 19 = 29.

Similar questions