Vidyalelo
C++ Programming · Q147

C++ miscellaneous

Programming · C++ Programming · question 147

Q147

What does this template function indicates? ================== template T func(T a) cout<<a; ==================

A.
A function taking a single generic parameter and returning a generic type
Answer
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

Solution

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