Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
107 / 187
Explain function templates with multiple parameters?
Answer:
Like template class we can use more than one generic data type in the template statement, using comma separator
Syntax:
Template
return type function name(argument of type T1,T2,…)
{
………..
//body of function
}
Asked In ::
Nathu
23 Feb, 2019 5:07 AM
Like template class we can use more than one generic data type in the template statement, using comma separator
Syntax:
Template
return type function name(argument of type T1,T2,…)
{
………..
//body of function
}
Syntax:
Template
return type function name(argument of type T1,T2,…)
{
………..
//body of function
}