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 |
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
You want to link a c++ program to c functions. How would you do it?
Explain how to initialize a const member data.
What is constructor in C++?
What do you understand by a pure virtual member function?
what is c++
Which one is a preferred language C or C++? Why?
What is an adaptor class or Wrapper class?
What is an explicit constructor?
What do you mean by early binding?
What happens if a pointer is deleted twice?
What are the important differences between c++ and java?