Endian representation of 64-bit values
32bit-64bit, c, endianness
Solution
The first one is wrong. On ia32 at least the layout is `EF CD AB 89 67 45 23 01`.
The others are correct.
Problem
Suppose I have `unsigned long long x = 0x0123456789ABCDEF`. Which of the following is correct? (I can verify only the first one): - On a 32-bit little-endian processor, it will appear in memory as `67 45 23 01 EF CD AB 89`. - On a 64-bit little-endian processor, it will appear in memory as `EF CD AB 89 67 45 23 01`. - On a 32-bit big-endian processor, it will appear in memory as `01 23 45 67 89 AB CD EF`. - On a 64-bit big-endian processor, it will appear in memory as `01 23 45 67 89 AB CD EF`.