This repository is for anyone who is new to open source and coding. Everyone is welcome to contribute, whether in coding or non-coding areas. Your pull request will be accepted if it follows the code of conduct. Do join our Discord - https://discord.gg/KY7s2dpF server
This PR adds a C program to convert an infix expression to a postfix expression using a stack. The program handles operator precedence, parentheses, and alphanumeric operands.
Changes:
File Added: InfixToPostfix.c
Implemented push(), pop(), peek(), precedence(), isOperator(), and infixToPostfix() functions.
PR Description:
Summary:
This PR adds a C program to convert an infix expression to a postfix expression using a stack. The program handles operator precedence, parentheses, and alphanumeric operands.
Changes:
InfixToPostfix.c
push()
,pop()
,peek()
,precedence()
,isOperator()
, andinfixToPostfix()
functions.How to Test:
infix_to_postfix.c
.(A+B)*C
AB+C*
Additional Notes:
+
,-
,*
,/
, and^
.