Application of Stack

  1. Expression Evolution
  2. Expression conversion
    1. Infix to Postfix
    2. Infix to Prefix
    3. Postfix to Infix
    4. Prefix to Infix
  3. Parsing
  4. Simulation of recursion
  5. Fuction call



Expression Representation

InfixPrefixPostfix
a + b+ a ba b +
a + b * c+ a * b ca b c * +
(a + b) * (c - d)* + a b - c da b + c d - *