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

Write my own zero-argument manipulator that should work same as hex?

0 Answers  


What gives the current position of the put pointer?

0 Answers  


Explain what are single and multiple inheritances in c++?

0 Answers  


how to swap two strings without using any third variable ?

11 Answers  


What is a constructor initializer list and when we use constructor initializer list?

3 Answers   Soft Info, TCS,


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

0 Answers  


Comment on assignment operator in c++.

0 Answers  


What is encapsulation in c++?

1 Answers  


write a porgram in c++ that reads an integer and print the biggest digit in the number

0 Answers  


Is c++ primer good for beginners?

0 Answers  


What is the fastest c++ compiler?

0 Answers  


What is the difference between the functions rand(), random(), srand() and randomize()?

0 Answers  


Categories