bgc
bgc copied to clipboard
Ch 4 pointers: unordered vs reverse order
The following section is what I found initially confusing:
Memory Fun Facts: When you have a data type that uses more than a byte of memory, the bytes that make up the data are always adjacent to one another in memory. Sometimes they're in order, and sometimes they're not^[The order that bytes come in is referred to as the endianness of the number. Common ones are big endian and little endian. This usually isn't something you need to worry about.]
Sometimes they're in order, and sometimes they're not
This threw me for a loop briefly. How could they not be in order? After seeing the footnote, I realized that rather than being unordered, they can be in a reversed order on some systems.
Perhaps something like
Sometimes the bytes are ordered most significant first, and other times most significant last^[footnote]
would be more clear?
Thanks, this guide has been great so far