What are templates? where we should use it?
Answer Posted / prabhatkr09
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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
Which software is best for c++ programming?
Explain "const" reference arguments in function?
What is difference between c++ and c ++ 14?
What is microsoft c++ redistributable?
Should a constructor be public or private?
What is microsoft c++ redistributable 2013?
Why is c++ difficult?
Is nan a c++?
What is & in c++ function?
Can we define function inside main in c++?
What do you mean by overhead in c++?
How a new operator differs from the operator new?
How would you use the functions randomize() and random()?
What is auto type c++?
What is the basic structure of a c++ program?