Computer Science, asked by niharika311205, 11 hours ago

13. Evaluate the following expressions, if the values of the variables are: a = 2, b = 3 and c = 3 i. a - (b++) * (--C) ii. a * (+ +b) %C​

Answers

Answered by purveshKolhe
4

\huge{\green{\underbrace{\overbrace{\blue{\mathfrak{answer::}}}}}}

\sf{\underline{Given \: that::}}

a = 2

b = 3

c = 3

i. a - b++ * -- c

ii. a * ++b % c

0utputs::

i. -4

ii. 2

\sf{\underline{Know \:more::}}

Difference between postfix and prefix form of increment.

  • Postfix form uses the variable first and then increments it.
  • While prefix form first increments it and then works over it

var a = 5;

console.log(a++); // Outputs 5

var a = 5;

console.log(++a); // Outputs 6

I hope that I did not make any mistakes. Sorry for the inconvenience, if any.

Hope this helps...

Similar questions