
Sizeof Structure as Defined, Not Allocated
Question: Given: pre>typedef struct{ byte a; byte b; byte c; byte d; byte e;} LETTERS; sizeof(LETTERS) returns eight bytes because of padding by the compiler for alignment.How can I determine how many bytes were actually defined, not allocated? Answer: There is no standard function or operator to detect how many