0

C program to evaluate infix expression into postfix expression

C programming

#include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #define max 100 char st[max]; int top=-1; void push(char st[],char); char pop(char st[]); void infixtopostfix(char source[],char target[]); int  getpriority(char); int main() { char infix[100],postfix[100]; clrscr(); printf(“\n*******************************”); printf(“\nenter postfix expression\n”); gets(infix); strcpy(postfix,””); infixtopostfix(infix,postfix); printf(“\n the corresponding postfix… Continue Reading