Site navigation

Which of the following defines a family of functions in the same way a class template defines a family…

A function template specifies a family of functions parameterized by types or other template arguments. Different arguments produce corresponding function specializations,…

Choose your answer

Which of the following defines a family of functions in the same way a class template defines a family of classes ?

Select one answer
Answer and explanation

Correct answer A

A function template specifies a family of functions parameterized by types or other template arguments. Different arguments produce corresponding function specializations, just as a class template describes a family of class specializations.

Practice for these exams

  • Maharashtra and Goa SET (MH SET)

Related question papers

Related exam syllabi

Related questions in this topic