73. Unions-I

Question.4

On a little-endian system, a developer modifies the LSB of a 32-bit value via union:

union { uint32_t val; uint8_t b[4]; } reg;
reg.val = 0xAABBCCDD;
reg.b[0] = 0xFF;
printf("0x%08X", reg.val);

What is the output?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!