Open In App
Related Articles

UGC-NET | UGC NET CS 2015 Jun – II | Question 14

Improve Article
Improve
Save Article
Save
Like Article
Like

Which of the following is incorrect in C++ ?
(1)When we write overloaded function we must code the function for each usage.
(2)When we write function template we code the function only once.
(3)It is difficult to debug macros
(4)Templates are more efficient than macros
(A) (1) and (2)
(B) (1), (2) and (3)
(C) (3) and (4)
(D) All are correct.


Answer: (D)

Explanation:

  • When we write overloaded function we must code the function for each usage. Correct
  • When we write function template we code the function only once. Correct
  • It is difficult to debug macros Correct
  • Templates are more efficient than macros Correct

So, option (D) is correct.

Quiz of this Question

Last Updated : 14 May, 2018
Like Article
Save Article
Similar Reads