What would be the output of the following postfix expression?
20 50 3 6 + * * 300 / 2 –
What would be the output of the following postfix expression?
20 50 3 6 + * * 300 / 2 –
Solution
✅ Correct Option: 3
A postfix expression is evaluated left to right. Operands are pushed onto a stack, and each operator is applied to the top two values, with the earlier value on the left.
, so the stack is
, so the stack is
Related questions:
2026: 11 May Shift 2
2025: 22 May Shift 1
2026: 24 May Shift 1
2026: 19 May Shift 1