struct struct_name {
char a;
char b;
char c;
}
The size of the structure struct_name is 3 but
struct struct_name1 {
char a;
char b;
char c;
int d;
char e;
char f;
char g;
};
the size of struct_name1 is 12 why? I know this is because of padding but why the size of structure stuct_name is 3 and why the sizeof structure struct_name1 is not 11.