struct t{ char days[20]; int date; char x; struct t *next; }*head printf("%ld\n", sizeof(head));
其中sizeof(*void)=8,sizeof(int)=4,sizeof(char)=1
sizeof(*void)=8
sizeof(int)=4
sizeof(char)=1
为什么打印8?
c struct sizeof
c ×1
sizeof ×1
struct ×1