Define function Template?
Answers
Answered by
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
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
Chemistry,
7 months ago
Math,
7 months ago
Biology,
7 months ago
Computer Science,
1 year ago
English,
1 year ago
Political Science,
1 year ago
Math,
1 year ago
Biology,
1 year ago