While evaluating a postfix expression, when an operator is encountered, what is the correct operation to be performed?

Question:
While evaluating a postfix expression, when an operator is encountered, what is the correct operation to be performed?

1.push it directly on to the stack

2.pop 2 operands, evaluate them and push the result on to the stack

3.pop the entire stack

4.ignore the operator

Posted Date:-2022-06-11 21:55:32


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!