Computer Science, asked by mohith4619, 6 months ago

Give the output of the following expression, when a = 5:

a += a++ + ++a + --a + a--;

System.out.println(a);​

Answers

Answered by keyboardavro
0

a+=a++ + ++a + –-a + a–- ;

a = 7 + (a++ + ++a + -–a + a–-);

a = 7 + (7 + 9 + 8 + 8);

a = 39

Similar questions