Answer Posted / aboelella
Template is used to optimize code
instead of implementing the same code for multiple data
types, template works as a way to declare classes and
functions and then to be implemented with different data types
It is dependent on the data structure used to substitute the
template
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between struct and class in terms of access modifier.
Explain virtual class?
What do you mean by translation unit in c++?
What is new in c++?
What are c++ storage classes?
Why #include is used?
What's c++ used for?
Search for: what is pair in c++?
What is an iterator class in c++?
What is c++ manipulator?
Which is not a valid keyword a) public b) protected c) guarded
What does new return if there is insufficient memory to make your new object?
When should I use unitbuf flag?
How do I exit turbo c++?
If dog is a friend of boy, is boy a friend of dog?