Which data structure would you use to evaluate an expression given in postfix notation?
Show answer
Correct answer A
A stack is used to evaluate postfix expressions as it allows operations in a last-in, first-out (LIFO) order. Operands are pushed onto the stack. Operators pop operands for computation, pushing the result back.