what will be the output when x=2 . t=x++*2+3*--x urgent
Answers
Answered by
1
Answer : . ...... 10
Answered by
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