1.

Parentheses are simply ignored in the conversion of infix to postfix expression.(a) True(b) FalseOrigin of the question is Application of Stacks in chapter Application of Stacks of Data Structures & Algorithms II got this question by my college professor while I was bunking the class.

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.



Discussion

No Comment Found

Related InterviewSolutions