D
David Rasmussen
If I have
struct foo
{
char bar;
long baz;
};
on many platforms, padding and alignment is taking place to get baz to
start at an even address or an address that 4 divides. So baz is not
necessarily one byte (the size of char) into struct foo.
How can I know exactly how many bytes into struct foo baz is?
/David
struct foo
{
char bar;
long baz;
};
on many platforms, padding and alignment is taking place to get baz to
start at an even address or an address that 4 divides. So baz is not
necessarily one byte (the size of char) into struct foo.
How can I know exactly how many bytes into struct foo baz is?
/David