I have this as my basic code.
struct TABLE
{
unsigned char a[2];
unsigned char b[8];
unsigned short c;
};
The best way I have of describing this is, I can successfully read from a file and place the data into &TABLE. I have read the data here and it is all good.
However,
&TABLE.a = 0x0000FF00
&TABLE.b = 0x0000FF03
&TABLE.c = 0x0000FF0C
&TABLE.c should be 0x0000FF0B.
What gets really interesting is if I change, b to [7] from [8]. &Table.c then returns 0x0000FF0A
What is the logic here?