The alignment of the structure should be such that all its fields are also correctly aligned (especially if they are part of an array).
, .
, , .
:
struct moreComplexCase {
char char1WithAlignment1;
unint32_t uintWithAlignment4;
char char2WithAlignment1;
}
. -, , uint32_t ( , , uint32_t ).
, (, , ) .
C , , . , x86 (, , ) ( ), (, ARM-) , .