Data Structures & AlgorithmsModerateTCS NQT · GATE CSE

What is the value of the postfix expression 5 3 2 * + 4 - 6 2 / + (integer division)?

  1. A. 9
  2. B. 10
  3. C. 13
  4. D. 7

Correct answer: B. 10

Stack steps: 3*2=6, 5+6=11, 11-4=7, 6/2=3, 7+3=10.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic