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
What is an operator function? Describe the function of an operator function?
What are virtual constructors/destructors?
Name the implicit member functions of a class.
What are single and multiple inheritances in c++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
How does atoi function work?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is the v-ptr?
What is type of 'this' pointer? Explain when it is get created?
What are the advantages of using typedef in a program?
Can you pass an array to a function in c++?
What is the difference between map and hashmap in c++?
What is helper in c++?
You want to link a c++ program to c functions. How would you do it?
Do you need a main function in c++?