max Description : Compares two values, returning the greatest. Example: int a = 7, b = 3; auto greatest = std::max(a, b); // prints 7 std::cout << greatest << " "; See Sample code Run Code