#include "stdafx.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int a[] = {1, 2, 3, 4, 5, 6};
int (*p)[3] = reinterpret_cast<int(*)[3]>(a + 1);
cout << "sizeof(*p)=" << sizeof(*p) << endl;
int *p2 = a;
p2++;// p2指向的是int型,所以它的++步长是1
p++;// p指向的是包含3个int的数组,所以它的++步长是3
cout<<*p[0]<<endl;//4
cout << *p2 << endl;//2
return 0;
}