The GATE Grind

GATE 2007 CS – Question 38

Programming and Data Structures · Stacks and Queues · 2 marks · Multiple choice

Evaluate postfix expression with single-digit operands using a stack:

8 2 3 ^ / 2 3 * + 5 1 * −

^ is exponentiation. What are the top two stack elements after the first *?

  1. 6, 1
  2. 5, 7
  3. 3, 2
  4. 1, 5

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) 6, 1

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Stacks and Queues questions

All Stacks and Queues questions →