Why the range of int is -32768 to 32767?
Because of how numbers are stored. Signed numbers are stored using something called “two’s complement notation”. Remember all variables have a certain amount of bits. If the most significant one of them, the one on the left, is a 0, then the number is non-negative (i.e., positive or zero), and the rest of the bits … Read more