How one would use switch in a program?
If a function doesn’t return a value, how do you declare the function?
What is singleton pattern in c++?
Why ctype h is used in c++?
What is unary operator? List out the different operators involved in the unary operator.
How do you compile the source code with your compiler?
What you mean by early binding and late binding? How it is related to dynamic binding?
Define a conversion constructor?
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 is a container class? What are the types of container classes?
How many static variables are created if you put one static member into a template class definition?
why c++ is not called strictly d super set of c?
How java is different from c and c++?