Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of templates?

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between struct and class in terms of access modifier.

1227


Explain virtual class?

1083


What do you mean by translation unit in c++?

1436


What is new in c++?

1158


What are c++ storage classes?

1161


Why #include is used?

1120


What's c++ used for?

1160


Search for: what is pair in c++?

1176


What is an iterator class in c++?

1199


What is c++ manipulator?

1032


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

1308


What does new return if there is insufficient memory to make your new object?

1088


When should I use unitbuf flag?

1072


How do I exit turbo c++?

1123


If dog is a friend of boy, is boy a friend of dog?

1051