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.
c) The function call is encountered in the C++ program
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.
You might also like to view...
The Find command replaces the found text with new text or formatting
Indicate whether the statement is true or false
________ shows how the report will look in a continuous page layout
A) Print Preview B) Layout view C) Report view D) Design view