Which of the following is a memory leak detection tool?
For non-static member functions, how many object arguments can a unary operator overloaded function take?
What type of list does the List sequence container implement?
What is the time complexity of following code:
int a = 0, i = N;
while (i > 0) {
a += i;
i /= 2;
}
Which C++ container classes are not considered full container classes?
What does a reference provide?
Which of the following function declarations using default arguments is correct?
What are the functions of the scope resolution operator (::)?
What will be the output of the following C++ code?
#includeusing namespace std; int f(int p, int q) { if (p > q) return p; else return q; } int main() { int a = 5, b = 10; int k; bool x = true; bool y = f(a, b); k = ((a * b) + (x + y)); cout << k; }
What is the main limitation of the ternary operator compared to the if statement?