(Prefix - Infix - Postfix) Notations
  • are three different but equivalent ways of writing expressions

Examples

Semantics

Prefix Notation

Infix Notation

Postfix Notation

multiply A and B, divide C by D, add the results

+ * A B / C D

A * B + C / D

A B * C D / +

add A and B, Subtract C by D, add the results

+ + A B - C D

A + B + C - D

A B + C D - +