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 data hiding c++?

686


What is the difference between multiple and multilevel inheritance in c++?

718


Where can I run c++ program?

700


What is difference between class and function?

671


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

696






What's the "software peter principleā€?

716


Why do we use constructor?

712


Explain how a pointer to function can be declared in C++?

659


Define pointers?

702


Explain the volatile and mutable keywords.

716


Are iterators pointers?

773


Can we define function inside main in c++?

649


What is oops in c++?

680


What is istream and ostream in c++?

697


What is an operator in c++?

695