The upper limit for any int data type (excluding tinyint), is always one less than the absolute value of the lower limit.
int
tinyint
For example, the
Let's say you have a 4byte (32 bit) integer. The range defined by C++ is -231 to 231-1. So we end up with a range -231.....0......231. We can think of this as having 231 non negative integers (note 0 is included) and 231 negative integers.
4byte (32 bit)
-231
231-1
-231.....0......231
231 non negative integers
231 negative integers