#include "stdio.h"
typedef struct test_t{
int a;
int b;
int c;
int d;
}mytest;
int main()
{
mytest *test;
printf("sizeof=%ld\n",sizeof(*test));
}
结果打印为16
#include "stdio.h"
typedef struct test_t{
int a;
int b;
int c;
int d;
}mytest;
int main()
{
mytest *test;
printf("sizeof=%ld\n",sizeof(*test));
}
结果打印为16