74. Unions-II

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?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!