Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

GATE | GATE CS 1997 | Question 7

  • Last Updated : 06 Feb, 2020

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

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :