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 are templates? where we should use it?

Answer Posted / prabhatkr09

Template allow us to write one function and class that works for different datatype .

Use :

Create a type safe collection class that can operate on data of any type.

add extra type checking for function.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ support exception handling?

1067


What is a storage class?

1278


what you know about c++?

1160


What is time h in c++?

1139


What do nonglobal variables default to a) auto b) register c) static

1157


Explain differences between alloc() and free()?

1141


Explain virtual class?

1034


What are arithmetic operators?

998


Write a program to find the reverse Fibonacci series starting from N.

1276


Write is a binary search tree? Write an algo and tell complexity?

1025


What is recursion?

2184


What is the difference between a definition and a declaration?

1072


What is the difference between a baller and a reference in C++?

1125


What is friend class in c++ with example?

1047


What are the stages in the development cycle?

1065