Computer Science, asked by avantika70, 11 months ago

what will be the value of a,b,c after the execution of the following :

int a=5,b =7,c =111;

c/= ++a*b--;​

Answers

Answered by sana961
2

Answer:a=6

b=6

c=42

Explanation:actually the question is not right

If,

int a=5,b=7,c;

c=++a*b--;

Answered by AadilPradhan
8

Answer:

a=6,b=6,c=2.

Explanation:

prefix increments or decrements take place before the operation but postfix increments or decrements take place after the operation.

c/= (expression) means c=c/(expression).

step 1 : c/=++a*b--

step 2: c=c/((a+1)*b)  (a becomes 6  and b becomes after the operation  )

step 3: c=111/(6*7)

step 4: c=2,b=6,a=6.

Similar questions