#include <iostream>
using namespace std;
template <typename T>
void ourFunction(T p)
{
cout << "Value is : " << p << endl;
}
int main()
{
ourFunction<int>(45);
ourFunction<double>(79.40);
ourFunction<char>('H');
return 0;
}
Posted inC++