Answer to Question #257058 in C++ for ALI

Question #257058

Q: Explain in your own words that how we evaluate postfix expressions using stack


1
Expert's answer
2021-10-27T00:25:57-0400

If the operand is an operand, push the element in the stack as you read the expression from left to right.

If the element is an operator, remove the two operands from the stack and evaluate it.

The evaluation's outcome should be pushed out. Repeat the steps until the statement is finished.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS