Which of the following is essential for converting an infix expression to the postfix from efficiently ?
(A) An operator stack
(B) An operand stack
(C) An operand stack and an operator stack
(D) A parse tree
Answer: (A)
Explanation: Operator stack is used for converting infix to postfix expression such that operators like as +, *, (, ), / are pushed in stack where as operand stack is used for converting Postfix to Prefix evaluation such that operands are 7,2,1,2 etc.
Hence, option (A) is correct.
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 1997 | Question 72
- GATE | GATE CS 1997 | Question 1
- GATE | GATE CS 1997 | Question 2
- GATE | GATE CS 1997 | Question 3
- GATE | GATE CS 1997 | Question 4
- GATE | GATE CS 1997 | Question 5
- GATE | GATE CS 1997 | Question 6
- GATE | GATE CS 1997 | Question 8
- GATE | GATE CS 1997 | Question 9
- GATE | GATE CS 1997 | Question 10
- GATE | GATE CS 1997 | Question 11
- GATE | GATE CS 1997 | Question 12
- GATE | GATE CS 1997 | Question 13
- GATE | GATE CS 1997 | Question 14
- GATE | GATE CS 1997 | Question 15
- GATE | GATE CS 1997 | Question 16
- GATE | GATE CS 1997 | Question 17
- GATE | GATE CS 1997 | Question 18
- GATE | GATE CS 1997 | Question 19
- GATE | GATE CS 1997 | Question 20
Improved By : ApurvaRaj

