Multiple choice

What will be the value of the postfix expression 10, 5, 1, +, +, 4, /?

  1. 4

  2. 20

  3. 64

  4. 12

  5. 1

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

This is the correct answer. We calculate it using stack; we push operands into stack and when an operator will come, then push top two elements and perform the necessary operation. According to this, we get 10 -> 105 -> 10, 51 -> 10, 5, 1+ -> 10, 6+ -> 164 -> 16, 4/ -> 4. This is the final value.