Creating a function template is most appropriate when ___________.

a. you want a function to take multiple arguments

b. you need several functions with the same name, but the logic is different depending on the arguments

c. you are writing several functions that take different argument types, but use the same logic

d. you want only one version of a function to exist so as to avoid confusion

Respuesta :

Answer:

Creating a function template is most appropriate when you are writing several functions that take different argument types, but use the same logic

Explanation:

Function templates are used when you have the a function that does the same thing, but with different operartors, for example, different argument types.

So

Creating a function template is most appropriate when you are writing several functions that take different argument types, but use the same logic