If I have a structure definition in C of the following
typedef struct example { char c; int ii; int iii; };
What should be the memory al
Under normal 32 bit it should take 12 bytes - the c field will be padded. This is architecture and compiler depended, however.
c
You can always use a pragma for the compiler to declare the alignment for the structure (and for some compilers, change the default alignment).
pragma