Vidyalelo
Computer Science · Q249

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 249

Q249

When two types are used in a function template and one is labeled T, the other

A.
must also be named T
Answer
B.
must be named U
C.
can be any legal C++ identfier
D.
it is illegal to have two types

Answer: Option A

Solution

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