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?
Select Answer
S=5 U=5
S=8 U=4
S=5 U=4
S=8 U=8