[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C++

111 / 187

What are the benefits of templates?

Answer:

• Templates allow implementing the concept of generic programming.
• Template allows us to generate a family of classes or a family of functions to handle different data types.
• Template classes and functions eliminate code duplication for different types and thus make the program development easier and more manageable.
• We can use multiple parameters in both the class templates and function templates.
• Like other functions, templates can be overloaded.

Asked In ::

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.