Skip to content
Related Articles

Related Articles

Improve Article
UGC-NET | UGC-NET CS 2017 Dec 2 | Question 15
  • Difficulty Level : Medium
  • Last Updated : 15 Mar, 2018

Which of the following is not correct (in C++) ?

  1. Class templates and function templates are instantiated in the same way
  2. Class templates differ from function templates in the way they are initiated
  3. Class template is initiated by defining an object using the template argument
  4. Class templates are generally used for storage classes

(A) (1)
(B) (2), (4)
(C) (2), (3), (4)
(D) (4)


Answer: (C)

Explanation: In C++ class template and function template are similar in the way the are initiated.
Class template are not used for storage class. Class templates and function templates are instantiated in the same way and Class template is not initiated by defining an object using the template.

So (2), (3), (4) are not correct in C++.
So, option (C) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :