0

If x=8 and y=7 then x++ then x+=y-- value of x comes 16 but how???

16th Dec 2021, 8:36 PM
Deep Vachhani
2 Réponses
+ 3
x = 8 y = 7 x++ // same as x = x + 1 x += y-- // same as x = x + y and then y = y - 1 when you have x += --y it will be the same as x = x + (y = y - 1)
16th Dec 2021, 8:41 PM
Alexey Kopyshev
Alexey Kopyshev - avatar
0
Okkk thanks
16th Dec 2021, 8:42 PM
Deep Vachhani