结构体指针
概念:
当一个指针指向一个结构体变量的时候,就叫做结构体指针,结构体指针指向结构体变量的首地址
访问成员值:


#include <stdio.h> int main(int argc, const char * argv[]) { struct Students//定义结构体 { int age; char *name; float score; }; struct Students stu1={ 23,"陈擎霄",99.0};//初始化一个结构体变量 struct Students *p=&stu1; //间接访问成员值 printf("名字是%s\n",(*p).name); //</