#include<stdio.h>
int main(){
typedef union{
long i;
int k[5];
char c;
}DATE;
struct date{
int cat;
DATE cow;
double dog;
}too;
DATE max;
printf ("%d\n", sizeof(struct date));
printf ("%d\n", sizeof(struct date) +sizeof(max));
}
实在不会了,这个结构体的字节长为什么会是32呢?代码已有求解释
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
