Im не "что" новое для C, но может кто-нибудь пожалуйста, просветите меня на этом одном:Sizeof Struct против SIZEOF Тип
printf("%d %d\n", sizeof(int), sizeof(unsigned char));
печати, как ожидается, 4 и 1.
typedef struct
{
int a;
unsigned char b;
} test
printf("%d\n", sizeof(test));
печати 8 ... Я действительно смущен!
http://en.wikipedia.org/wiki/Data_structure_alignment#Data_structure_padding – Mysticial