Find the output of C++ Program
What will be the output of the below C++ program: // Template Function – Not taking class template <class T, int i> int myFun(){ T x = 10; i = 20; } int main(){ fun<int, 4>(); return 0; }
Function Templates in C++
What are function templates in C++? Why and how are they used ?