Similar questions 4 more →
Stacks & Queues

Your answer
Answer & solution
Official answer: C
Step through it (10 steps)
1. A stack evaluator pops the right operand first and left operand second. After + the stack contains 15; after / it contains 15,10; after * it contains 150; the final subtraction is 150−8, not 8−150.
2. Postfix evaluation gives 10+5=15, 60/6=10, then 15·10=150, and 150−8=142. Thus C.