임 대 없음 "그"C에 새로운하지만 어떤 사람이 하나를 가르치 려하시기 바랍니다 수 : 4과 1SIZEOF 구조체를 sizeof 유형
typedef struct
{
int a;
unsigned char b;
} test
printf("%d\n", sizeof(test));
인쇄 (8) 예상대로
printf("%d %d\n", sizeof(int), sizeof(unsigned char));
인쇄 ... 정말 혼란 스러워요!
http://en.wikipedia.org/wiki/Data_structure_alignment#Data_structure_padding – Mysticial