(Solved): Q: write a program &…..

QUESTION

Question

write a program that should take infix expression as input. It should convert infix expression into postfix and evaluate postfix expression to get result.

 

ANSWERS:

Step 1

Solution

C program to convert infix expression to postfix expression and evaluating the result

 

#define SIZE 50 /* Size of Stack */
#include <ctype.h>
#include <stdio.h>

char s[SIZE];
int top = -1; /* Global declarations */

/* Function to remove spaces from given string */
void RemoveSpaces(char* source) {
 char*

Leave a Comment

Your email address will not be published. Required fields are marked *