1.

Which among the following is the proper syntax for the template class?

A. template <typename T1, typename T2>;
B. Template <typename T1, typename T2>;
C. template <typename T> T named(T x, T y){ }
D. Template <typename T1, typename T2> T1 named(T1 x, T2 y){ }
Answer» D. Template <typename T1, typename T2> T1 named(T1 x, T2 y){ }


Discussion

No Comment Found