const min in c++ INT MIN code example
Example 1: c++ min
#include <algorithm> // std::min
std::min(1,2);
Example 2: maximum int c++
#include <limits>
int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)