struct char c; // offset 0 int i; // offset 4 (padded 3 bytes after c) short s; // offset 8 // total size often 12 (pad to multiple of 4)

Expert C programmers think in terms of the stack, the heap, and the data segments.