fork(1) 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. printf("a[1][0] :%d,%d\n",a[2][0],*(p[2]+0));
  7. printf("a[1][1] :%d,%d\n",a[2][1],*(p[2]+1));
  8. printf("a[1][2] :%d,%d\n",a[2][2],*(p[2]+2));
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
a[1][0] :7,10
a[1][1] :8,11
a[1][2] :9,12