/* http://csapp.cs.cmu.edu/ * Practice problem 3.23 * * For each of the following structure declarations, determine the offset of each * field, the total size of the structure, and its alignment requirements under * Linux/IA32. */ struct P1 { int i; char c; int j; char d; }; struct P2 { int i; char c; char d; int j; }; struct P3 { short w[3]; char c[3]; }; struct P4 { short w[3]; char *c[3]; }; struct P5 { struct P1 a[2]; struct P2 *p; };