Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
463 B
1
Indexable
Never
#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;
 	
 }