Hi, Question about sizeof() function :
typedef struct _TABLE_1 { unsigned char Table[10]; unsigned long ; unsigned long ; unsigned long ; unsigned char ; unsigned char ; unsigned char ; } TABLE_1,*PTR_TABLE_1; typedef struct _TABLE_2 { unsigned char ; unsigned char ; unsigned char ; } TABLE_2,*PTR_TABLE_2;
This is very common indeed (if not universal) among compilers for targets having a word size greater than 1 byte. Look up "Alignment" in the processor manual