What is the purpose of templates in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

You run a shell on unix system. How would you tell which shell are you running?

0 Answers  


What is atoi?

0 Answers  


What is flush c++?

0 Answers  


How do you invoke a base member function from a derived class in which you have not overridden that function?

0 Answers  


What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

3 Answers  






What are the different types of polymorphism in c++?

0 Answers  


What is endl c++?

0 Answers  


how can u create a doubly linked list with out using pointers?

2 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


How do you declare A pointer to a function which receives nothing and returns nothing

0 Answers  


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

0 Answers  


What are the static members and static member functions?

1 Answers  


Categories