give the output of the following expression a+=a+++ ++a + --a +a-- when a=7
Answers
Answered by
28
Hello there!!
I'm Rajdeep....
a = 7 (Initial value of a is 7)
We have to find a = a + a++ + ++a + --a + a--
= 7 + 7 + 9 + 8 + 8
= 39
That's your answer...
Thanks
Please follow to get more answers!
I'm Rajdeep....
a = 7 (Initial value of a is 7)
We have to find a = a + a++ + ++a + --a + a--
= 7 + 7 + 9 + 8 + 8
= 39
That's your answer...
Thanks
Please follow to get more answers!
Answered by
1
Answer:
a = 7 + (a++ + ++a + -–a + a–-);
a = 7 + (7 + 9 + 8 + 8);
a = 39
Explanation:
Similar questions