Computer Science, asked by tanvvi7936, 1 year ago

Define function Template?

Answers

Answered by megha1738
1
Templates are a feature of the C++ programming language that allows functions and classes to operate with generic types. This allows a function or class to work on many different data types without being rewritten for each one. 

megha1738: plz mark me as brainliest
Answered by gratefuljarette
0

Answer:

The function template is a template in which we can create generic functions based on generic data types which we can use in our large code. Function templates have been widely used in C++ programming language to reuse a piece of code again and again.

In the function template, we can declare a function that contains generic functions containing generic data types that can be used in programs requiring those functions. These functions are used in class templates in C++.

Similar questions