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

What is linked list in c++?

1180


If a function doesn’t return a value, how do you declare the function?

1111


How many keywords are used in c++?

1067


What is the use of class in c++?

1122


What are c++ manipulators?

1123


What is difference between malloc()/free() and new/delete?

1223


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3068


Is atoi safe?

1100


What operators can you overload in c++?

1088


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

1053


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1159


Can a class be static in c++?

1145


What is the use of ::(scope resolution operator)?

1124


What are the rules about using an underscore in a c++ identifier?

1256


What does iomanip mean in c++?

1283