#include #include struct Record { char code; int depth; }; int main(void) { printf("First member starts at zero: %d\n", offsetof(struct Record, code) == 0); printf("Depth follows code: %d\n", offsetof(struct Record, depth) >= sizeof(char)); printf("Object fits its members: %d\n", sizeof(struct Record) >= sizeof(char) + sizeof(int)); printf("Alignment is positive: %d\n", _Alignof(struct Record) > 0); return 0; }