✏️ Explanatory Question
Give the output of the following expression:
a+= a++ + ++a + --a + a-- ; when a = 7
Give the output of the following expression:
a+= a++ + ++a + --a + a-- ; when a = 7
a+= a++ + ++a + --a + a--
⇒ a = a + (a++ + ++a + --a + a--)
⇒ a = 7 + (7 + 9 + 8 + 8)
⇒ a = 7 + 32
⇒ a = 39