Multiple choice

The postfix expression for the infix expression A+B*(C+D)/F+D*E, is

  1. AB+CD+F/D+E

  2. ABCD+F/+DE+

  3. A*B+CD/F*DE++

  4. A+*BCD/F*DE++

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Applying operator precedence to A + B * (C + D) / F + D * E, the term B * (C + D) / F becomes ABCD + * F /, and D * E becomes DE *. Adding them together yields ABCD + * F / + DE * +.