This document defines functions to convert an infix notation mathematical expression to postfix notation. It includes functions to initialize an empty stack, check if a stack is empty, push operands onto the stack, and pop operands off the stack. The infix_to_postfix function uses these stack functions to process an infix string character by character, pushing operators onto the stack and appending operands to the output postfix string based on operator precedence.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
28 views2 pages
Infix To Post Fix in C
This document defines functions to convert an infix notation mathematical expression to postfix notation. It includes functions to initialize an empty stack, check if a stack is empty, push operands onto the stack, and pop operands off the stack. The infix_to_postfix function uses these stack functions to process an infix string character by character, pushing operators onto the stack and appending operands to the output postfix string based on operator precedence.