Computer Science, asked by yashsingh3121, 16 days ago

What is the value of b after evaluating the following expression:


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

when

int a=12,b=13 and c= 11 ;

Answer ASAP!!!!!!​

Answers

Answered by aditya432010
0

Answer:

mujhe nahi pata kya karu

Answered by anindyaadhikari13
1

Answer:

Given that,

>> a = 12

>> b = 13

>> c = 11

Evaluating the expression..

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

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

>> b = 13 + --c + ++c + a++ * (++b)  [b = 13]

>> b = 13 + 10 + ++c + a++ * (++b)  [c becomes 10, pre-decrement]

>> b = 13 + 10 + 11 + a++ * (++b)   [c becomes 11, pre-increment]

>> b = 13 + 10 + 11 + (12 * ++b)   [a is 12, post-increment]

>> b = 13 + 10 + 11 + (12 * ++b)  [a becomes 13]

>> b = 13 + 10 + 11 + (12 * 14)  [b becomes 14, pre-increment]

>> b = 202

Therefore.

>> a = 13, b = 202 and c = 11.

Answer:

\dag\ \begin{cases}\sf a= 13\\ \sf b=202\\ \sf c=11  \end{cases}

•••♪

Similar questions