template<class T, class X> class Obj {
T my_t;
X my_x;
public:
Obj(T t, X x) : my_t(t), my_x(x) { }
};
Referring to the sample code above, which one of the
following is a valid conversion operator for the type T?
a) T operator T () { return my_t; }
b) T operator(T) const { return my_t; }
c) operator(T) { return my_t; }
d) T operator T (const Obj &obj) { return obj.my_t; }
e) operator T () const { return my_t; }
What are different types of polymorphism supported by C++
Explain container class.
What is difference between shallow copy and deep copy? Which is default?
How can you quickly find the number of elements stored in a dynamic array?
Differentiate between realloc() and free().
Why do we use pointers in c++?
What is an inclusion guard?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
what is smart pointer & use of the smart pointer ???
What is flush programming?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
write a porgram in c++ that reads an integer and print the biggest digit in the number