+1 vote
in Data Structures & Algorithms I by (110k points)
Parentheses are simply ignored in the conversion of infix to postfix expression.

(a) True

(b) False

Origin of the question is Application of Stacks in chapter Application of Stacks of Data Structures & Algorithms I

I got this question by my college professor while I was bunking the class.

1 Answer

+1 vote
by (408k points)
selected by
Best answer
The correct option is (b) False

For explanation: When a parenthesis is encountered, it is placed on the operator stack. When the corresponding parenthesis is encountered, the stack is popped until the other parenthesis is reached and they are discarded.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.