int main()
{
//int a[5] = { 1, 2, 3, 4, 5 };
//int *ptr = (int *)(&a + 1);
//printf("%d,%d", *(a + 1), *(ptr - 1));//2 5
/*int a[4] = { 1, 2, 3, 4 };
int *ptr1 = (int *)(&a + 1);
int *ptr2 = (int *)((int)a + 1);
printf("%x,%x", ptr1[-1], *ptr2);*///0x04 0x20000000
/*int a[3][2] = { (0, 1), (2, 3), (4, 5) };
int *p;
p = a[0];
printf("%d", p[0]);*///1
/*int a[5][5];
int(*p)[4];
p = a;
printf("a_ptr=%#p,p_ptr=%#p\n", &a[4][2], &p[4][2]);
printf("%p,%d\n", &p[4][2] - &a[4][2], &p[4][2] - &a[4][2]);*///-4 vs2006
//int aa[2][5] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
//int *ptr1 = (int *)(&aa + 1);
//int *ptr2 = (int *)(*(aa + 1));
//printf("%d,%d", *(ptr1 - 1), *(ptr2 - 1));//10 随机值
//printf("%p %p", &aa[4], &(*(ptr2 - 1)));
/*char *a[] = { "work", "at", "alibaba" };
char**pa = a;
pa++;
printf("%s\n", *pa);*/
system("pause");
return 0;
}