Chapter4 Numbers Bronze Change

The bit representation of -1 using 8-bit signed integer is:
1111 1111

The bit representation above is 255 using 8-bit unsigned integer.

1 Like

@derekcoder - thanks, this such a wonderful way to learn about min and max values of integer types and explain it, i have gone through some books that have not explained this in such a clear way, its 2020 and swift 5 is here but still the book so far myself being in chapter 4 is really great, i also have the ios book,

earlier i was confused about how to calculate min and max but now its quite clear …

Amit