Write a function that swaps the values of two integers, using int* as the argument type?
Define what is constructor?
What are smart pointers?
What are raw sockets, where they are efficient?
Comment on local and global scope of a variable.
What is stl containers in c++?
Differentiate between the message and method in c++?
What is polymorphism and its type in c++?
How long will it take to learn programming?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Why do we need templates?
What is the need of a destructor? Explain with the help of an example.