If a =12, b =11 and a+= a++ – --a + --b; What will be the values of a and b?
Answers
Answered by
1
Answer:
a = 22, b = 10
Explanation:
a = 12, b = 11
a += a++ - --a + --b
=> a = a + a++ - --a + --b
= 12 + 12 - 12 + 10
= 22
a is 12, a++ gives 12 and then a becomes 13. --a decrements 13 to 12 and gives 12. --b decrements 11 to 10 gives 10. The value of the expression is stored in a.
So, a = 22, b = 10
Please mark me as the brainliest.
Similar questions