S
Sean Hamilton
struct a { uint8_t b, c, d, e; };
union b { uint8_t f[16]; struct a g[4]; };
Is it guaranteed that b.f and b.g will have the same address and size?
Is a struct with only one type of member like that equivalent to an
array with regard to alignment and padding?
Thanks in advance,
union b { uint8_t f[16]; struct a g[4]; };
Is it guaranteed that b.f and b.g will have the same address and size?
Is a struct with only one type of member like that equivalent to an
array with regard to alignment and padding?
Thanks in advance,