Check for Balanced Parentheses using Stack?
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 |
What is an object in c++?
What is the difference between the functions memmove() and memcpy()?
What does the ios::ate argument do?
Why do we need templates?
What is implicit pointer in c++?
which operator is used for performing an exponential operation a) > b) ^ c) none
why we cant create array of refrences
Explain rtti.
Can a class be static in c++?
Write about the retrieval of n number of objects during the process of delete[]p?
Explain the concept of dynamic allocation of memory?
Explain the differences between private, public and protected and give examples.