What is the largest decimal value that can be represented as an 8-bit unsigned integer?
i thought it was 511 bc 511 = 1+2+4+8+16+32+64+128+2^8...
i thought it was 511 bc 511 = 1+2+4+8+16+32+64+128+2^8...
?
Well,
1111 1111_base 2 = 2^8 - 1 = 255_base 10
you proposal :
i thought it was 511 bc 511 = 1+2+4+8+16+32+64+1282^8
==> you are confusing with the amount of numbers,
... not the greatest
255 <--- answer
et voilĂ , mademoiselle !! ;-)
hope it' ll help !!