Find the value of b = ++a + a++ +--a +a if a = 5 .
Answers
Answered by
3
Answer:
Steps how it executed:
b=++a +a++ +--a+a
b=6+6+6+6
b=24
Note:In pre increment the value is first incremented then assigned.
In post increment the value is first assigned then incremented.
Hope it helps...
Attachments:
Answered by
2
a= 5
b= 9
=a+= a++ - ++b+a
=5-10+6+6
=7
Hope this'll help you.
Attachments:
Similar questions