. If a = 5, b = 15 calculate the value of a+= a++ - ++b + a
Answers
Answered by
0
Answer:
sorry I don't know
Explanation:
please mark me brainliest
Answered by
0
Answer:
0
Explanation:
a=a+ a++ - ++b + a
=5+ 5-16+6
10-10
0
a++ it means that you will first use the original value of a in the equation and then increase it by 1
after increasing it by 1,it becomes the original value of a
a=5
a++;
a=6 (in memory now= a=6)
a=b
therefore now b=6
when there is ++a you first increase by 1 and then use it
a=5
++a;
now a=6
Similar questions