How INT_MIN calculated in C++?
INT_MIN is the smallest value that an int data type can hold.
INT_MIN = -2^(sizeof(int)*8 - 1)
// why we multiply by 8?
// because 1 byte = 8 bits
// why we subtract 1?
// because we want to get the most significant bit
mahad.hashnode.dev1 min read