Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions
Technical Discussion :: C++

106 / 184

What is function templates?


Like class template, we can also define function templates that would be used to create a family of function with different argument types.
return type function name(argument of type T)
//body of function
//with type T
//wherever appropriate

We must use the template parameter T as and when necessary in the function body and in its arguments list.

Asked In :: Sopra Steria

Post Your Answer Here:

Rate This: +0 -0     

Post Your Reply Here:

Alert me

Report Error

Please Login First Click Here

Most Popular Qs.