Skip to main contentSkip to solution

Give output of the evaluation of the following postfix expression:

10 2 8 * + 3 –

Solution

✅ Correct Option: 1

A postfix expression is scanned left to right. Operands are pushed onto a stack, and each operator is applied to the top two values, with the earlier value as the left operand.

2 8 ∗=2×8=162\ 8\ * = 2 \times 8 = 16

10 16 +=10+16=2610\ 16\ + = 10 + 16 = 26

26 3 −=26−3=2326\ 3\ - = 26 - 3 = \boxed{23}

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question