Evaluation of postfix expression using stack

June 17, 2024 No Comments » Hits : 685





Expression Representation Techniques :

  1. Infix Expression
  2. Prefix Expression
  3. Postfix Expression

Evaluation of Postfix Expression : [ Click Here ]

ExpressionExampleNote
Infixa + bOperator Between Operands
Prefix+ a bOperator before Operands
Postfixa b +Operator after Operands

Generally postfix expressions are free from Operator Precedence thats why they are preferred in Computer system.Computer System Uses Postfix form to represent expression. Following is the example that shows evaluation of the Postfix expression using stack as data structure.

Using Stack Evalution of Postfix Expression using Stack Algorithm

Incoming search terms: