Which of the following is true of function templates?

a. All function templates begin with the keyword class.
b. Every formal type parameter is preceded by either keyword typename or template.
c. Formal type parameters act as placeholders for built-in types or user-defined types and are used to specify the types of arguments to the function, to specify the return type of the function, and to declare variables within the body of the function definition.
d. A programmer must define a separate function template for each template function specialization to be used in the program.

c. Formal type parameters act as placeholders for built-in types or user-defined types and are used to specify the types of arguments to the function, to specify the return type of the function, and to declare variables within the body of the function definition.

Computer Science & Information Technology

You might also like to view...

A form or report header appears one time at the top of each form or report

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ object will maintain a connection between the source and destination files, storing information in the source file

Fill in the blank(s) with correct word

Computer Science & Information Technology