Give the output of the following expression, when a = 5: [2]
a += a++ + ++a + --a + a--;
System.out.println(a);
Answers
Answered by
1
Answer:
refer to another question and follow the steps
Explanation:
Give the output of the following expression :
a+=a++ + ++a + -–a + a-– ; when a = 7
a+=a++ + ++a + –-a + a–- ;
a = 7 + (a++ + ++a + -–a + a–-);
a = 7 + (7 + 9 + 8 + 8);
a = 39
Similar questions
Business Studies,
3 months ago
Math,
6 months ago
Business Studies,
11 months ago
English,
11 months ago