Computer Science, asked by sreyasarkar389, 15 hours ago

24 )If a = 5, b = 9, C=0 calculate the value of a, b and c: C = a++ - ++b + a * 2 - - -a + b++;​

Answers

Answered by jenidass28
0

Answer:

7

Explanation:

a++ - ++b + a * 2- --a + b++

⇒ C =  (a++ - ++b + a) * (2 - --a + b++)

⇒ C =  (5 - 10 + 6) * (2 - 4 + 9)

[∵ a++ will first use current value of a then increment it to 6. ++b will increment b to 10 and use the incremented value. --a will first use current value of a then decrement it to 4 and b++ will use the current value.]

⇒ C =  1 * 7

⇒ C = 7

Similar questions