Work on your google-fu.
256 is 2 to the power of 8 or 8 bits/1 byte, so counting from 0, 255 is the largest number that can be stored in a byte. 2 ^ 8 = 256, if you include 0 that’s 255. Meaning that you’re using the place for 256 for the 0, so you have one less to use. So that would be 8 bits that are available to you.
Latest Answers