DS - Infix To Postfix - CSE C
DS - Infix To Postfix - CSE C
#include<stdio.h>
#include<string.h>
while(s[top] !='#')
{
postfix[j++]=s[top - - ];
}
postfix[j]= '\0';
return;
}
void main ()
{
char infix [20], postfix [20];
printf ("enter the infix expression\n");
scanf ("%s", infix);
infix_to_postfix (infix, postfix);
printf ("postfix expression is: %s", postfix);
}