Untitled
unknown
plain_text
3 years ago
463 B
16
Indexable
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<ctype.h>
#define size 50
char s[size];
int top=-1;
push(char elem)
{
return (s[++top]=elem);
}
char pop()
{
return (s[top--]);
}
int pr(char elem)
{
switch(elem)
{
case #: return 0;
case '(': return 1;
case +:
case -:return 2;
case '*':
case '/':return 3;
}
return;
}
void main()
{
char infx[50],pofx[50],ch,elem;
int i=0,k=0;
}Editor is loading...