Vidyalelo
C++ Programming · Q428

C++ miscellaneous

Programming · C++ Programming · question 428

Q428

What does this template function indicates? ================== template void 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
Answer
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 B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board