The equivalent infix expression and value for the postfix form 1 2 + 3 * 4 5 * – will be ___________

The equivalent infix expression and value for the postfix form 1 2 + 3 * 4 5 * – will be ___________ Correct Answer (1 + 2) * 3 – (4 * 5) and -11

Given postfix expression : 1 2 + 3 * 4 5 * – ⇒ (1 + 2) 3 * 4 5 * – ⇒ ((1 + 2) * 3) 4 5 * – ⇒ ((1 + 2) * 3) (4 * 5) – ⇒ ((1 + 2) * 3) – (4 * 5) So, the equivalent infix expression is (1 + 2) * 3 – (4 * 5) and it’s value is -11.

Related Questions

Given two processes (conversion of postfix equation to infix notation and conversion of prefix notation to infix notation), which of the following is easier to implement?