What should be done when a left parenthesis is encountered?

Q & ACategory: Data StructureWhat should be done when a left parenthesis is encountered?
Admin Staff asked 4 years ago

What should be done when a left parenthesis ‘(‘ is encountered?
a) It is ignored
b) It is placed in the output
c) It is placed in the operator stack
d) The contents of the operator stack is emptied

1 Answers
Admin Staff answered 4 years ago

c) It is placed in the operator stack