Skip to main content

Postfix Evaluation(Single or Multi Digit) using STACK in C


POSTFIX EVALUATION WITH SINGLE OR MULTI DIGIT:

Students find difficulties in finding the correct code for Postfix evaluation using Stack which works for Single as well for multidigit also;

So here is the Question Format Given::-

Question_2; Data_Structure:
 Write a C program to evaluate the following POSTFIX expression. Use STACK to solve this problem. 
  • INPUT: 5 6 2 + * 12 4 / - 
  • OUTPUT: 37
Basic Understanding:

Here is the Correct code:





Comments

Post a Comment