다음 코드는 sizeof (fpos_t) = 8 및 sizeof (f1) = 16이므로 sizeof sizeof (int) = 4. 누군가 이것을 설명 할 수 있습니까?MVC에서 이상한 sizeof 결과
int main()
{
typedef struct {
fpos_t fpos;
char* s;
int a;
} t1;
typedef struct {
fpos_t fpos;
int a;
} t2;
t1 it1;
t2 it2;
printf("sizeof(t1)=%d sizeof(t2)=%d ", sizeof(t1), sizeof(t2));
return 0;
}
한 단어로 설명 할 수 있습니다. * 패딩 * –