What will be the result of the following expression? [2] int a=2; a = a ++ + a;
Answers
Answered by
0
Answer:
a+= a++ + ++a + --a + a--
⇒ a = a + (a++ + ++a + --a + a--)
⇒ a = 7 + (7 + 9 + 8 + 8)
⇒ a = 7 + 32
⇒ a = 39
Explanation:
a+= a++ + ++a + --a + a--
⇒ a = a + (a++ + ++a + --a + a--)
⇒ a = 7 + (7 + 9 + 8 + 8)
⇒ a = 7 + 32
⇒ a = 39
Similar questions
Math,
3 hours ago
Social Sciences,
3 hours ago
Science,
3 hours ago
Social Sciences,
6 hours ago
Hindi,
6 hours ago
English,
8 months ago
Hindi,
8 months ago
Hindi,
8 months ago