Computer Science, asked by mahir9198, 11 months ago

Advantages of postfix expression over infix expression

Answers

Answered by lucy02
7

Explanation:

Surely Postfix expression has certain advantages over infix and http://prefix . It is also a long-standing tradition in mathematics to write the operator between operands X+Y , rather than after the operands XY+.

Postfix notation is when we use operator after the operands. Let's discuss the advantages are-

Any formula can be expressed without parenthesis.

It is very convenient for evaluating formulas on computer with stacks.

Postfix expression doesn't has the operator precedence.

Postfix is slightly easier to evaluate.

It reflects the order in which operations are performed.

You need to worry about the left and right associativity.

As far as I have realised/studied the advantages are listed above.

Answered by StaceeLichtenstein
5

Following are the advantage of postfix expression over the infiix expression is given below.

Explanation:

  • Postfix expression is simple to execute as a comparison to the infix expression it required more operation to execute.
  • In the postfix expression the overhead of brackets is not there while in the infix expression the overhead of brackets is there.
  • The precedence of the operator has not effected the postfix expression while in the infix operator precedence is important.

Learn More :

https://brainly.in/question/7429713

Similar questions