give the output of the following expression in Java a=a++ + ++a + --a + a--. ;when a=7
Answers
Answered by
1
Answer:
a++ means a + 1
Therefore if a = 7
Then increment a++ gives 7 + 1 = 8
Then increment ++a gives 7 - 1 = 6
Similar questions