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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

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