Answer Posted / hrpynux@gmail.com
If the current character is a starting bracket ('(' or '{' or '[') then push it to stack. If the current character is a closing bracket (')' or '}' or ']') then pop from stack and if the popped character is the matching starting bracket then fine else brackets are not balanced.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
Is c++ a difficult language?
Is facebook written in c++?
Is c++ a low level language?
Name the debugging methods that are used to solve problems?
What is the v-ptr?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Does c++ vector allocate memory?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Is turbo c++ free?
Is there finally in c++?
What is an iterator class in c++?
What is the role of C++ shorthand's?
Mention the storage classes in c++.
how to connect with oracle 9i with server in socket program in c/c++