What are templates? where we should use it?
Answer Posted / satheeshkumar
Template allow us to write one function and class that
works for different datatype .
Use :
Create a type safe collection class that can operate on
data of any type.
add extra type checking for function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the unique features of C++.
Can a program run without main function?
What is the use of setfill in c++?
what is scupper?
Is it possible for the objects to read and write themselves?
How can I learn dev c++ programming?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is java and c++?
Explain this pointer?
What is basic if statement syntax?
What is the latest version on c++?
Can you please explain the difference between static and dynamic binding of functions?
What is #include math h in c++?
what are function pointers?
What is the best c++ compiler for windows 10?