1.

Which are done by compiler for templates?(a) type-safe(b) portability(c) code elimination(d) prototypeI got this question in semester exam.Query is from Simple String Template in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Right answer is (a) type-safe

Easiest explanation - The compiler can determine at compile TIME WHETHER the type ASSOCIATED with a TEMPLATE DEFINITION can perform all of the functions required by that template definition.



Discussion

No Comment Found

Related InterviewSolutions