max of 2 numbers c++ code example
Example: max two numbers c++
template <class T> inline T max(T a, T b)
{
return a > b ? a : b;
}
//Example: max(2,5) = 5
template <class T> inline T max(T a, T b)
{
return a > b ? a : b;
}
//Example: max(2,5) = 5