Hi,
I have 2 structures like this:
Code:struct A { char i; char j; };and it is quite obvious that sizeof(A) == 2, but why sizeof(B) == 8?Code:struct B { char i; char j; int k; };
Does anybody know where I could read something about how does compiler allocates memory?