When would you want to make a function a function template?

a. when the implementation details of the function are independent of the data type(s) of the parameters.
b. all functions should be function templates
c. when two different functions have different implementation details
d. only when two functions have the same type of parameters


a. when the implementation details of the function are independent of the data type(s) of the parameters.

Computer Science & Information Technology

You might also like to view...

A while loop tests its condition before performing its statements making it a(n) ____ loop.

A. pretest B. posttest C. failsafe D. infinite

Computer Science & Information Technology

Consider the class Person with an additional attribute, age. Write an OQL query that, for each age, produces a count of people of this age. Use two methods: with the GROUP BY clause and without it (using a nested query in SELECT). Describe a plausible query evaluation strategy in each case and explain which query will run faster.

What will be an ideal response?

Computer Science & Information Technology

When creating a table using the New Excel Spreadsheet command, how does the content display?

A) Embedded Excel worksheet B) Table C) Lotus workbook D) An attached file

Computer Science & Information Technology

The recommended methodology for creating worksheets includes _____.

A. analyze requirements B. design solution C. validate design D. document solution

Computer Science & Information Technology