Question.1
A union contains a uint32_t and a byte array:
union Data { uint32_t word; uint8_t bytes[4]; }; Data d; d.word = 0x11223344; printf("0x%02X", d.bytes[0]);
On a little-endian ARM Cortex-M, what is printed?
Select Answer
0x11
0x44 -- little-endian stores the least significant byte at the lowest address; bytes[0] holds the LSB
0x22
Undefined -- cannot read a different member than was written