Is `long` guaranteed to be at least 32 bits?
C++ uses the limits defined in the C standard (C++: 18.3.2 (c.limits), C: 5.2.4.2.1): LONG_MIN -2147483647 // -(2^31 – 1) LONG_MAX +2147483647 // 2^31 – 1 So you are guaranteed that a long is at least 32 bits. And if you want to follow the long circuitous route to whether LONG_MIN/LONG_MAX are representable by a … Read more