# include <stdio.h> # include <stdlib.h> # include <string.h> # include <malloc.h> //创建一个结构体 typedef struct programmer { int salary; int experience; ]; } Programmer; void OneyearLater(Programmer *); int main () { Programmer p = {,…
在C语言中几乎可以创建指向任何类型的指针,包括用户自定义的类型.当然也可以指向结构体,先看一个小案例: #include <stdio.h> #include <string.h> typedef struct PERSON { int age; int height; ]; } Person; int main (){ Person p = {, , "phper"}; //别名 Person *p_s = &p; //定义结构体指针 printf(&…