give the output of the following expression a+=a+++ ++a + --a +a-- when a=7
Answers
Answered by
15
When a=7
First enclose them with brackets to make it easy,
a+=(a++)+(++a)+(--a)+(a--)
a+= 7 + 9 + 8 + 8
a+=32
a= a+32
a=7+32
a= 39
The output is 39
Hope this will help you.If yes plz mark as brainliest
First enclose them with brackets to make it easy,
a+=(a++)+(++a)+(--a)+(a--)
a+= 7 + 9 + 8 + 8
a+=32
a= a+32
a=7+32
a= 39
The output is 39
Hope this will help you.If yes plz mark as brainliest
Similar questions