A function template enables you to write a single function that can handle data of _______ type(s). 

  • single 
  • multiple 
  • dual 
  • fixed
Function templates in C++ allow developers to write a single function definition that can work with data of various types. Instead of writing multiple functions for each type, templates allow for type-generic implementations, meaning one can handle data of multiple types with the same function logic.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *