int _tmain(int argc, _TCHAR* argv[])
{ int a[2][3] = { 0 };
printf("address of a = %p %p %p %p\n", a, &a, &a[0], &a[0][0]); // all equal a printf("address of a + 1 = %p %p %p %p\n", a+1, &a+1, &a[0]+1, &a[0][0]+1); // a+3*4 ( 4 bytes per int), a+6*4, a+3*4,a+4
No comments:
Post a Comment