struct stu{
char a;
int b;
char c;
};
int main(){
struct stu stu1;
stu1.b = 12;
struct stu stu2;
stu2.b = 10;
return 0;
}
the address of each element is shown below:
&stu1
0x7fffffffe000
&stu1.a
0x7fffffffe000
&stu1.b
0x7fffffffe004
&stu1.c
0x7fffffffe008
&stu2
0x7fffffffe010
&stu2.a
0x7fffffffe010
&stu2.b
0x7fffffffe014
&stu2.c
0x7fffffffe018
why there are 4 bytes (0x7fffffffe0c~0x7fffffffe00f) between the 2 structs
ps:also, if the 2 structs are only defined without initilized, the address of them are the same, why?