(Solved): Q: Evaluation of po&…..

QUESTION

Question

Evaluation of postfix expression in c

ANSWERS:

Program Explanation
  • Define header file <stdio.h> for io operations.
  • Define int array st with 20 elements.
  • Define int variable t and initialize its value to -1.
  • Define function push with parameter int a.
  • Initialize every element of t in st by a.
  • Define function pop.
  • Return the incremented value of t of st.
  • Define main function.
  • Define character array exp with 20 elements.
  • Define character pointer variable e.
  • Define int variables

Leave a Comment

Your email address will not be published. Required fields are marked *