algorithms.tutorialhorizon.com
Evaluation of Postfix Expressions (Polish Postfix notation) | Set 1 | Algorithms
Evaluation of Postfix Expressions (Polish Postfix notation) Postfix notation is a notation for writing arithmetic expressions in which the operands appear before their operators. There are no precedence rules to learn, and parentheses are never needed. Example: Postfix: 54+ Output: 9 Explanation: Infix expression of above postfix is: 5+ 4 which resolves to 9 Postfix: 2536+**5/2- Output: 16