二维数组相关概念
相关总结
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int a[3][4] = { 0 };
printf("%d\n", sizeof(a));
printf("%d\n", sizeof(a[0][0]));
printf("%d\n", sizeof(a[0]));
printf("%d\n", sizeof(a[0] + 1));
printf("%d\n", sizeof(*(a[0] + 1)));
printf("%d\n", sizeof(a + 1));
printf("%d\n", sizeof(*(a + 1)));
printf("%d\n", sizeof(&a[0] + 1));
printf("%d\n", sizeof(*(&a[0] + 1)));
printf("%d\n", sizeof(*a));
printf("%d\n", sizeof(a[3]));
printf("%p\n", a[0]);
printf("%p\n", a[0] + 1);
int* p0 = a[0];
printf("%p\n", a);
printf("%p\n", a + 1);
int(*p2)[4] = a;
printf("%p\n", a[0]);
printf("%p\n", a[0] + 1);
int* p0 = a[0];
printf("%p\n", &a[0]);
printf("%p\n", &a[0] + 1);
int(*p1)[4] = &a[0];
int arr[4] = { 0 };
printf("%p\n", arr);
printf("%p\n", &arr);
printf("%p\n", arr+1);
printf("%p\n", &arr+1);
system("pause");
return 0;
}