Give the output of the following expression, when a = 5:
a += a++ + ++a + --a + a--;
System.out.println(a);
Answers
Answered by
0
a+=a++ + ++a + –-a + a–- ;
a = 7 + (a++ + ++a + -–a + a–-);
a = 7 + (7 + 9 + 8 + 8);
a = 39
Similar questions