指针数组/数组指针
#include <iostream>
using namespace std;
int main()
{
int a[4] = {0,1,2,3};
int (*p)[4];
p = &a;
for (int i = 0;i <= 3;)
{
cout<<(*p)[i++]<<endl;
} //数组指针
//int *pi[4];
int b[4];
int *pi[4]={&b[0],&b[1],&b[2],&b[3]};
for (int j = 0; j <= 3;j++)
{
*pi[j] = j;
}
for (int k = 0; k <= 3;k++)
{
cout<<*pi[k]<<endl;
}
char *str[3] = {"R","A","Y"};
for (int kk = 0; kk <= 2; kk++)
{
cout<<*str[kk]<<endl;
}
//指针数组
}