#include<stdio.h>
int main(void)
{
int a[4][3] = {1,2,3,4,5,6,7,8,9,10,11,12};
int (*p)[3] = a - 1;
printf("a[1][0] = %d, *(p[1]+0) = %d \n", a
[1][0], *(p
[1]+0) ); printf("a[1][2] = %d, *(p[1]+2) = %d \n", a
[1][2], *(p
[1]+2) ); printf("a[2][1] = %d, *(p[2]+1) = %d \n", a
[2][1], *(p
[2]+1) );
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKHZvaWQpCnsKICAgIGludCBhWzRdWzNdID0gezEsMiwzLDQsNSw2LDcsOCw5LDEwLDExLDEyfTsKCiAgICBpbnQgKCpwKVszXSA9IGEgLSAxOwoKICAgIHByaW50ZigiYVsxXVswXSA9ICVkLCAqKHBbMV0rMCkgPSAlZCBcbiIsIGFbMV1bMF0sICAqKHBbMV0rMCkgKTsKICAgIHByaW50ZigiYVsxXVsyXSA9ICVkLCAqKHBbMV0rMikgPSAlZCBcbiIsIGFbMV1bMl0sICAqKHBbMV0rMikgKTsKICAgIHByaW50ZigiYVsyXVsxXSA9ICVkLCAqKHBbMl0rMSkgPSAlZCBcbiIsIGFbMl1bMV0sICAqKHBbMl0rMSkgKTsKCiAgICByZXR1cm4gMDsKfQo=