Answers for "max of 2 ints c++"

C++
0

max two numbers c++

template <class T> inline T max(T a, T b)
{ 
  return a > b ? a : b;
}
//Example: max(2,5) = 5
Posted by: Guest on May-05-2021

Browse Popular Code Answers by Language