1.

Which of the following statement is incorrect with respect to infix to postfix conversion algorithm?(a) operand is always placed in the output(b) operator is placed in the stack when the stack operator has lower precedence(c) parenthesis are included in the output(d) higher and equal priority operators follow the same conditionMy question is from Application of Stacks in division Application of Stacks of Data Structures & Algorithms IThis question was posed to me during a job interview.

Answer» RIGHT choice is (c) parenthesis are INCLUDED in the OUTPUT

The BEST I can explain: Parentheses are not included in the output. They are placed in the operator stack and then discarded.


Discussion

No Comment Found

Related InterviewSolutions