c语言中聚合类型有两种:结构体和数组
聚合类型的特点:只初始化部分,其余部分就为0
如何访问结构体的成员?
1.通过结构体的普通变量,通过“.”访问他的成员
2.通过结构体的指针,通过“->”访问他的成员
struct A *pa = &sa;
(*pa).b = 200;
pa->b = 300;
(*pa).b = 200;
pa->b = 300;
stu1.name="zhangfei"<错误>
struct Student stu1={"liubei"};<正确>
typedef<类型定义><修饰复杂类型>
typedef unsigned long uint32
typedef int * Pint
typedef int Arr[10]
typedef unsigned long uint32
typedef int * Pint
typedef int Arr[10]
typedef int [10] Arr
typedef int (*PFun)(int,int)
typedef int(*PArr)[4]
typedef int (*PFun)(int,int)
typedef int(*PArr)[4]