Home / Tag Archives: how to convert infix expression to postfix expression

Tag Archives: how to convert infix expression to postfix expression

Conversion of Infix Expression to Postfix Expression

Conversion of Infix Expression to Postfix Expression

Assignment : Data structure Conversion of infix expression to postfix expression #include”stdio.h” #include “stdafx.h” #include”conio.h” #include”iostream” #include”stdlib.h” #include”string.h” using namespace std; # define MAX 100 int top=-1; char infix[100],postfix[100]; char stack[100]; int priority(char symbol) { switch(symbol) { case ‘(‘:return 0; case ‘+’: case ‘-‘: return 1; case ‘/’: case ‘*’: …

Read More »