what is the use of templates?

Answer Posted /

templates are used for GENERIC.....Programing...

by using templates.....you can write program for generic
linked list .

tempaltes make code reusable....

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is one dimensional array in c++?

584


Can user-defined object be declared as static data member of another class?

556


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

640


Where is atoi defined?

584


Where and why do I have to put the "template" and "typename" keywords?

586






Can I learn c++ in a week?

583


What language does google use?

590


Is java made in c++?

585


What is the difference between public and private data members?

666


How a modifier is similar to mutator?

646


What is implicit conversion/coercion in c++?

657


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2041


Explain Memory Allocation in C/C++ ?

641


Are vectors passed by reference c++?

521


What is the operator in c++?

635