So, the maximum number 1 byte (8 bits) can have is 255, so does that mean 255 combinations of 0 & 1 in the 8 places?
Asked
Active
Viewed 142 times
2 Answers
1
Well don't forget all zeroes. The total number of combinations is actually $2^8=256$.
J. W. Perry
- 5,447
- 3
- 22
- 28
1
8 bits can be used to represent 256 distinct values (usually 0-255).
This is a result of the following: you have 2 choices for each bit, namely 0 or 1. When considering these choices together you are left with $2*2*2*2*2*2*2*2 = 2^8$ possible combinations of 0s and 1s.
camjuar
- 123