Professional Documents
Culture Documents
Algorithm To Convert An Infix Expression Into The Postfix Expression
Algorithm To Convert An Infix Expression Into The Postfix Expression
#include <stdio.h>
#include <ctype.h>
#define SIZE 50
char stack[SIZE];
int top=-1; /* Global declarations */
push(char elem)
{ /* Function for PUSH operation */
stack[++top]=elem;
}
char pop()
{ /* Function for POP operation */
return(stack[top--]);
}