The code for a template function is generated when:

a. The function template declaration (prototype) appears in the C++ program.
b. The function template is encountered in the C++ program.
c. The function call is encountered in the C++ program
d. At runtime, when the function call is executed.


Part c)
Explanation: Code for template function is generated by the compiler when the call is encountered during the compiling of the C++ program.
Note to the Instructor: The answer to this question is very compiler dependent. It is based in part on the PITFALL: Compiler Complications in the text on page 659 . Use of this question requires investigation of problems with your compiler’s template facility.

Computer Science & Information Technology

You might also like to view...

As with all previous versions of Windows,Windows 2000, XP, and 2003 are secure with their default installation settings.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In ____ verification, the higher-order protocols (HTTP, FTP, Telnet) are examined for unexpected packet behavior or improper use.

A. application stack B. application protocol C. protocol stack D. protocol behavior

Computer Science & Information Technology

When using multimedia in your Web pages, it is a good idea to store all of your sound and other media files in a separate folder

Indicate whether the statement is true or false

Computer Science & Information Technology

Plug and Play hardware automatically adjusts software settings to take maximum advantage of the hardware's capabilities.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology