Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

max two numbers c++

template <class T> inline T max(T a, T b)
{ 
  return a > b ? a : b;
}
//Example: max(2,5) = 5
 
PREVIOUS NEXT
Tagged: #max #numbers
ADD COMMENT
Topic
Name
9+2 =