#include <stdio.h>
struct p1
{
char a1;
int a2;
char a3;
int a4;
};
struct p2
{
char a1;
char a3;
int a2;
int a4;
};
int main()
{
printf("%d %d\n", sizeof(struct p1), sizeof(struct p2));
return 0;
}
$ ./a.out
16 12
$