The postfix expression equivalent to the prefix expression * + a b - c d is

2023

The postfix expression equivalent to the prefix expression * + a b - c d is

  1. A.

    a b + c d - *

  2. B.

    a b c d + - *

  3. C.

    a b + c d * -

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 575 students.

Show answer & explanation

Correct answer: A

Given prefix expression: * + a b - c d

The outermost operator is *, so the expression is:
(+ a b) * (- c d)

Convert each part to postfix:
+ a b -> a b +
- c d -> c d -

Now place * after the two postfix parts:
a b + c d - *

Therefore, option A is correct.

Explore the full course: Up Lt Grade Assistant Teacher 2025