Question discussion

What is the equivalent infix expression of the following postfix expression? M, N, O, +, *, P, /, Q, R, S, T, /, +, *, -

359822Medium DSSSB TGT Computer Science 0 replies 0 views
0

What is the equivalent infix expression of the following postfix expression? M, N, O, +, *, P, /, Q, R, S, T, /, +, *, -

  • AO * (M + N)/P - Q * (R + S/T)
  • BM * (N + O)/Q - P * (R/S + T)
  • CN * (M + O)/Q - P * (S + R/T)
  • D(((M*(N+O))/P)-(Q*(R+(S/T))))
Correct answer: D

Explanation

Reading the postfix from left to right: (M × (N + O)) / P and (Q × (R + (S / T))), and the final "−" subtracts the second from the first.

Discussion 0

Nobody has replied yet. Start the discussion!