Array type (two-dimensional)
#include <stdio.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+1));
printf ("%d\n", sizeof (&a[0]+1));
printf ("%d\n", sizeof (*a));
printf ("%d\n", sizeof (a[3]));
return 0;
}650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/E8/wKioL1YuEaah4xv1AABQzp9_yiI042.jpg "title=" QQ picture 20151026194016.png "alt=" Wkiol1yueaah4xv1aabqzp9_yii042.jpg "/>
(one-dimensional arrays)
#include <stdio.h>
int main ()
{
int a[] = {1,2,3,4};
printf ("%d\n", sizeof (a));
printf ("%d\n", sizeof (a+0));
printf ("%d\n", sizeof (*a));
printf ("%d\n", sizeof (a+1));
printf ("%d\n", sizeof (a[1]));
printf ("%d\n", sizeof (&a));
printf ("%d\n", sizeof (&a+1));
printf ("%d\n", sizeof (&a[0]));
printf ("%d\n", sizeof (&a[0]+1));
return 0;
}
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/EB/wKiom1YuEbayTAbuAABD3qf4JaM677.jpg "title=" QQ picture 20151026194221.png "alt=" Wkiom1yuebaytabuaabd3qf4jam677.jpg "/>
Various summaries of the sizeof