What does this template function indicates?
==================
template<class T>
T func(T a)
{
cout<<a;
}
==================
==================
template<class T>
T func(T a)
{
cout<<a;
}
==================
A. A function taking a single generic parameter and returning a generic type
B. A function taking a single generic parameter and returning nothing
C. A function taking single int parameter and returning a generic type
D. A function taking a single generic parameter and returning a specific non-void type
Answer: Option A
Join The Discussion