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
How is c++ used in the real world?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What do you mean by a template?
What are namespaces in c++?
What is time_t c++?
What is a loop? What are different types of loops in c++?
How does a C++ structure differ from a C++ class?
Is there finally in c++?
Will this c++ program execute or not?
Describe Trees using C++ with an example.
Are there interfaces in c++?
Can we use struct in c++?
What is friend class in c++ with example?
What is enum class in c++?
What do you mean by delegate? Can a user retain delegates?