what is the max value of a c++ integer 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;