1.

What may be the name of the parameter that the template should take?(a) same as template(b) same as class(c) same as function(d) same as memberThe question was posed to me during an interview for a job.This intriguing question originated from Simple String Template topic in section Derived Classes, Templates & Exception Handling in C++ of C++

Answer» RIGHT OPTION is (a) same as TEMPLATE

For EXPLANATION: The name of the parameter that the template should TAKE same as the template.


Discussion

No Comment Found

Related InterviewSolutions