1.

Evaluate the following expressions, if the values of the variables are: a=1, b=2, c=3 i. ++a % b - ++c ii. ++a / b - ++c​

Answer»

Answer:

ANSWER

(a) a - (B++) * (--C);

22

WORKING

a - (b++) * (--c)

⇒ 2 - 3 * 8 [∵ b++ uses current value of b in expression and then INCREMENTS it, --c decrements c to 8 and then uses this 8 in the expression]

⇒ 2 - 24

⇒ -22

(b) a * (++b) % c;

8

WORKING

a * (++b) % c

⇒ 2 * 4 % 9 [∵ ++b increments b to 4 then uses it in the expression]

⇒ 8 % 9

⇒ 8

Explanation:

hope it's HELPFUL for you

pls mark me as brainlist with following me



Discussion

No Comment Found