A

Admin • 802.91K Points
Coach

Q. Which of the following is true about function templates in C++?

  • (A) They allow functions to work with any data type
  • (B) They can only be used with integers
  • (C) They require explicit type specification
  • (D) They cannot be used with classes
  • Correct Answer - Option(A)
  • Views: 2
  • Filed under category C++
  • Hashtags:

Explanation by: Admin
Function templates allow writing generic functions that work with multiple data types.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.