Question.5
A developer defines a union for a sensor reading that can be one of three types:
typedef union { uint8_t byte_val; uint16_t word_val; uint8_t raw[6]; } SensorData; printf("%lu", sizeof(SensorData));
What does this print?
Select Answer
2 — size of the largest primitive (uint16_t)
6 — size of the largest member (raw[6])
9 — sum of all members
8 — aligned to 4-byte boundary