Question:medium

What is the postfix form of the infix expression A + B * C − D / E?

Show Hint

Handle * and / before + and −. Convert B*C and D/E first, then combine the additive operators left to right.
Updated On: Jul 2, 2026
  • A B + C * D E / −
  • A B + * C D − /
  • A B C D E + * − /
  • A B C * + D E / −
Show Solution

The Correct Option is D

Solution and Explanation

Idea: Fully parenthesise by precedence, then move each operator after its operands.

Insert the implied brackets according to priority:

\[(A + (B * C)) - (D / E)\]

Convert innermost groups: $B * C \to BC*$ and $D / E \to DE/$. The tree now reads $((A) + (BC*)) - (DE/)$.

Postfix places the operator last. The plus node yields $A\,BC*\,+ = ABC*+$. The top minus node takes that whole left result and the right group $DE/$, appending the operator:

\[ABC*+ \;\; DE/ \;\; - \;=\; ABC*+DE/-\]

\[\boxed{A\,B\,C\,*\,+\,D\,E\,/\,-}\]
Was this answer helpful?
0