Computer Science, asked by harisreemedicalskylm, 2 months ago

If a=5 , b=3 find c= a+++a+--b


Pls answer if you know ​

Answers

Answered by Hellion
28

\huge \sf \underline{ \underline{Answer}}

c = a++ + a --b

c = 5 + 6 - 2

c = 9

━━━━━━━━━━━━━━━━━━━━━━━━━

NOTE

  • The '++' (increment) operation after a variable adds +1 to the next same variable. If the same variable does not exists after it, the '++' after the 1st variable is of no use.
  • Same with '--'. Since the decrement operation is in the beginning, decrement takes place in that variable itself.
Similar questions