in DS recategorized by
3,763 views
2 votes
2 votes

The postfix expression AB + CD -* can be evaluated using a

  1. stack
  2. tree
  3. queue
  4. linked list
in DS recategorized by
3.8k views

3 Comments

moved by
answer is a
0
0
moved by
stack is the ans
0
0
moved by
A.   Stack
0
0

2 Answers

4 votes
4 votes
Best answer

This is a simple question. The postfix expression can be evaluated using a stack. First the operands are pushed into the stack and the moment a operator is encountered, operands are popped out, operation performed on the operands and the result once again pushed into the stack. This series of activities continue till the entire expression is not evaluated.

 

Hence,Option(A)Stack.

selected by
0 votes
0 votes
It is straight forward Stack is used for postfix evaluation and also for infix to prefix infix to postfix
Answer:

Related questions