minimum long integer value c++ code example
Example: how to set an integer equal to the largest integer possible in c++
// largest int in c++
signed int iMax = (unsigned int)~0 >> 1;
// largest unsigned int
unsigned int uMax = (unsigned int)~0;
// largest int in c++
signed int iMax = (unsigned int)~0 >> 1;
// largest unsigned int
unsigned int uMax = (unsigned int)~0;