3 ms·
This is because for any n-bit number, the maximum value is 2^n - 1, e.g. 2^8 - 1 = 255 But the number of values is just 2^n, because that includes zero.
by qweqwe14 3y ago
This is because for any n-bit number, the maximum value is 2^n - 1, e.g. 2^8 - 1 = 255
But the number of values is just 2^n, because that includes zero.