typedef struct s {
int x;
int y;
} S;
typedef struct t {
S s;
}
T t = {0};
T *pointer_to_T = &t;
printf("End address %x", pointer_to_T->s);
printf("Beginning address %x", &(pointer_to_T->s));
根据我的测试,pointer_to_T->s 是结构体 S 结尾的地址
pointer_to_T->s - &(pointer_to_T->s) = sizeof(S)
这里的预期行为是什么?或者这只是巧合?