笔记1:数组指针和指针数组的类型别名

int (p)[10] --》指向含有10个整数的数组的指针*
1)typedef int (* arrT)[10]
2)using arrT = int (* )[10]
3)typedef int arrT[10]
using arrT = int[10] //定义数组别名
arrT* -->数组指针

int p[10] --》含有10个整型指针的数组*
1)typedef int *arrT[10]
2)using arrT = int *[10]

你可能感兴趣的:(笔记,c语言,c++)