Computer Science, asked by riddhi1447, 10 months ago

what will be the output when x=2 . t=x++*2+3*--x urgent​

Answers

Answered by Anonymous
1

Answer : . ...... 10

Answered by Anonymous
4

Answer:

t = x++ * 2 + 3 * --x

x++ will remain 2 .

--x will also remain 2 since there is an increment of 1 already . Now there is decrement .

⇒ t = 2 * 2 + 3 * 2

⇒ t = 4 + 6

⇒ t = 10

Output will be 10 .

Similar questions