Which Template is used as a general set of operations that will be applied to various types of data?

Options
- Template class
- Function template
- Class template
- Both a and c


CORRECT ANSWER : Function template

Discussion Board
C++ - Templates

Function template is used as a general set of operations that will be applied to various types of data. If you need to perform identical operations on various types of data, you use function overloading to create two functions with the required function declaration. However, a better approach would be to use function templates, because you can perform the same task writing less and maintainable code.

Prajakta Pandit 01-30-2017 06:52 AM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement