fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[4][3]={1,2,3,4,5,6,7,8,9,10,11,12};
  5. int(*p)[3]=a+1;
  6.  
  7. printf("a[1][0] :%d,%d\n",a[2][0],*(p[2]+0));
  8. printf("a[1][1] :%d,%d\n",a[2][1],*(p[2]+1));
  9. printf("a[1][2] :%d,%d\n",a[2][2],*(p[2]+2));
  10.  
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
a[1][0] :7,10
a[1][1] :8,11
a[1][2] :9,12