Determine the offset of each field, the total size of the structure, and its alignment assuming 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; };
struct P1:
i c j d Total offset size struct alignment: