Which of the following is not correct (in C++)?
Show answerHide answer
Correct answer: (A) Class templates and function templates are instantiated in the same way
Explanation
Function templates are instantiated implicitly when the function is called with arguments, whereas class templates are instantiated by defining an object with explicit template arguments. So class templates and function templates are not instantiated in the same way; statement (a) is not correct.