I want to know if I had such a construction:
typedef struct {
char element;
} element_t;
So now is the condition:
sizeof(elem.element) == sizeof(element_t) == 1
true only for some architectures or it is always like that? I mean, any alignment can occur here, so can it be:
(sizeof(elem.element) == 1) != (sizeof(element_t) == 4)
if data in structures are aligned to 4-byte boundaries in a 32-bit architecture.