While converting an INFIX notation to its equivalent POSTFIX, ____ are PUSHed onto the stack.
While converting an INFIX notation to its equivalent POSTFIX, ____ are PUSHed onto the stack.
Solution
✅ Correct Option: 3
In infix to postfix conversion, only operators (and left parentheses) are pushed onto the stack. The stack holds operators until their precedence allows them to be popped into the output.
Operands are never pushed. They go straight to the output string as soon as they are read.
Options 1, 2 and 4: operands are added directly to the postfix expression. Pushing operands onto a stack is done when evaluating a postfix expression, not when converting to it.
Related questions:
2026: 23 May Shift 2
2026: 24 May Shift 1
2026: 11 May Shift 2