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
πŸ’¬ Discuss
βœ… Correct Answer: (A) They allow functions to work with any data type
Explanation: Function templates allow writing generic functions that work with multiple data types.
Explanation by: Admin
Function templates allow writing generic functions that work with multiple data types.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
138
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
83%
Success Rate