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

How do we balance an AVL Tree in C++?

837


What is ios :: in in c++?

808


What are separators in c++?

811


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1014


Tell me an example where stacks are useful?

763


Why do we need pointers?

740


Can we sort map in c++?

776


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

797


What is a wchar_t in c++?

796


How do c++ struct differs from the c++ class?

815


How many types of comments are there in c++?

745


Which is not a valid keyword a) public b) protected c) guarded

978


What is meant by the term name mangling in c++?

703


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1017


Is dev c++ free?

779