*p对二维数组中的所有元素进行了引用
#include<iostream>
#include<iomanip>
using namespace std;
void main()
{
int a[4][3] = {1,2,3,4,5,6,7,8,9,10,11,12};
int* p;
p = a[0];
for (int i = 0; i < sizeof(a) / sizeof(int); i++)
{
cout << "address: ";
cout << a[i];
cout << " is ";
cout << *p++ << endl;
}
}