一:
C语言中的数组有自己特定的类型
数组的类型由元素类型和数组大小共同决定
例如: int array[5] 的类型为 int [5]
二:
定义数组类型
C语言中通过typedef为数组类型重命名
typedef type(name)[size];
—— 数组类型
typedef int(AINT5)[5];
typedef float(AFLOAT10)[10];
——数组定义
AINT5 iArray;
AFLOAT10 fArray;
三:
数组指针
数组指针用于指向一个数组
数组名是数组首元素的起始地址,但并不是数组的起始地址
通过将取地址符&作用于数组名可以得到数组的起始地址
可通过数组类型定义数组指针:ArrayType* pointer
也可以直接定义:type(*pointer)[n];
pointer 为数组指针变量名
type为指向的数组的类型
n为指向的数组的大小
四: