![]() |
#2
rjsp2023-02-24 16:54
|
#include <stdio.h>
int main()
{
struct cat
{
int a[10];
char ch;
float f;
double *p;
} cat1;
printf("%d",sizeof(cat1));
return 0;
}
为什么我算出来是33,编译器是56,答案确是27?为什么double *p会是占2个字节?请各位大佬不吝赐教!!