why range is not equally divided it can be -127 to 128. and if we consider range -128 to 127 then -128 can not be represented in 8 bits. -128 in binary 1100000000 first bit is for sign bit.
Asked
Active
Viewed 267 times
1
-
4Learn about [two's complement](https://en.m.wikipedia.org/wiki/Two%27s_complement) – Some programmer dude Jul 25 '20 at 15:09
-
1You need to read up on how [Two's Complement notation](https://en.wikipedia.org/wiki/Two%27s_complement) works. – Adrian Mole Jul 25 '20 at 15:09
-
-128 = binary 10000000. A 16-bit integer would go from -32768 to -32767. – NomadMaker Jul 25 '20 at 15:36