Q. Which of the following is the correct way to declare a function template in C++?
β
Correct Answer: (C)
Both A and B
Explanation: Both 'template <typename T>' and 'template <class T>' are valid ways to declare a function template in C++.