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.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept AllReject Customize Settings