[Solved] How can I go about finding balance in a string in C?
[ad_1] Here is a demonstrative program written in C++ that you can use as an algorithm and rewrite it in C #include <iostream> #include <iomanip> #include <stack> #include <cstring> bool balance( const char *s, std::stack<char> &st ) { const char *open = “({[<“; const char *close = “)}]>”; if ( *s == ‘\0’ ) { … Read more