结构体强制转换

struct student {int name; int age; }student; typedef struct student* Pstu; void main() {     int a[2]={15,16};     printf("%d",((Pstu)a)->name);     printf("%d",((Pstu)a)->age); } 结果: 还可以写成:  struct s
相关文章
相关标签/搜索