Checks if a expression is balanced Ex: (({{}})) is balanced ({)} is not balanced
- Implemented Stack using Dynamic Array
- Pushed relevant characters onto stack
- Popped Characters off stack when necessary
- Returns whether the expression is balanced
- Also, returns where the expression is no longer balanced if it is not balanced along with expected character
Note: to follow this tutorial you will need gcc to be downloaded on your machine follow this tutorial to get it http://gcc.gnu.org/install/download.html
To run this code you will type gcc main.c then ./a.out