#include <stdio.h>
typedef struct Student {
int sid;
int age;
}* PST, ST;
// PST 等价于struct Student *
// ST 等价于 struct Student
int main(int argc, const char * argv[]) {
ST st;
PST ps= &st;
ps->sid = 0;
ps->age = 10;
printf("%d %d \n",st.sid, st.age);
return 0;
}
输出结果为:
0 10