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?

Answers were Sorted based on User's Feedback



What are templates? where we should use it?..

Answer / 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

What are templates? where we should use it?..

Answer / satheeshkumar

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 ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

what is VOID?

0 Answers  


Explain the different access specifiers for the class member in c++.

0 Answers  


Explain data encapsulation?

0 Answers  


what is multi-threading in C++?

0 Answers  


Can a class be static in c++?

0 Answers  


Is c++ proprietary?

0 Answers  


what are the iterator and generic algorithms.

0 Answers  


List out function which we can call without using object

1 Answers  


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

0 Answers   Axtria,


Differentiate between the message and method in c++?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


Will rust take over c++?

0 Answers  


Categories