73. Unions-I

Question.1

A developer defines two types with the same members:

typedef struct { uint32_t a; uint8_t b; } S;
typedef union  { uint32_t a; uint8_t b; } U;

printf("S=%lu U=%lu", sizeof(S), sizeof(U));

On a 32-bit platform, what is the output?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!