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
Write a Program for find and replace a character in a string.
If dog is a friend of boy, is boy a friend of dog?
Describe friend function & its advantages.
Write about the various sections of the executable image?
Is c++ built on c?
What are the various situations where a copy constructor is invoked?
Name the implicit member functions of a class.
What is a storage class? Mention the storage classes in c++.
What is a manipulative person?
What do you mean by early binding?
What is the extraction operator and what does it do?
Explain how an exception handler is defined and invoked in a Program.
What is an associative container in c++?
What does new in c++ do?
How are Structure passing and returning implemented by the compiler?