What are c++ templates used for?


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

Post New Answer

More C++ General Interview Questions

What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,


Explain what is polymorphism in c++?

0 Answers  


What are c++ stream classes?

0 Answers  


In the derived class, which data member of the base class are visible?

0 Answers  


What do you mean by global variables?

0 Answers  






Write a recursive program to calculate factorial in c++.

0 Answers  


What is a volatile variable in c++?

0 Answers  


What is a class template in c++?

0 Answers  


How would you use qsort() function to sort an array of structures?

0 Answers  


Why do we use templates?

0 Answers  


Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.

7 Answers   LG, Samsung,


What is the difference between mutex and binary semaphore?

0 Answers  


Categories