When an operator appears, what order should operands be popped?
Practice this question from Evaluate Reverse Polish Notation - Stack evaluation Pattern Practice Quiz, with options and an explanation.
Question
When an operator appears, what order should operands be popped?
Option A — Correct answer
Right operand first, then left operand
Option B
Left operand first, then right operand
Option C
Only one operand
Option D
No operands are needed
Explanation
Pop the right operand first, then the left operand.