YuweAEC / hacktoberfest-playground

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
https://yuweaec.github.io/hacktoberfest-playground/
MIT License
15 stars 44 forks source link

Added Infix to Postfix Conversion #67

Closed twinkle485 closed 1 month ago

twinkle485 commented 1 month ago

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:

How to Test:

  1. Compile and run infix_to_postfix.c.
  2. Example input: (A+B)*C
    • Output: AB+C*

Additional Notes: