If a=48: find a=a++ + ++a:
a=a++ + ++a
48+50=98
How the second number will become 50
Answers
Answered by
2
Answer:
sorry I don't know the answer please follow me I will also follow you mark me as brainliest
Answered by
6
first part a++ :
→ a++ will first increment a by 1 and return a - 1.
That means : a + 1 = 49 and it returns a - 1 = 49 - 1
= 48.
after solving a++, our new value of a appears as 48.
[But the value of a is 49]
second part ++a :
→ ++a will first increment a by 1 and return a + 1.
That means: a + 1 = 49 + 1
= 50
after solving ++a, our new value of a appears as 50.
Conclusion:
→ a = a++ + ++a
= 48 + 50
= 98
Similar questions