The max and min functions defined in can be used to compare any two objects for which the less-than () operators are defined. Use these functions in a small program to compare two integers, two doubles, and two strings. These two template functions are defined as shown below:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here