Paste Search Dynamic
Recent pastes
a[%d][%d]=%d
  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. for(int i=0;i<4;i++){
  7.  for(int j=0;j<3;j++){  
  8.    printf("a[%d][%d]=%d",i,j,a[i][j]);
  9.    putchar('\n');
  10.    printf("%d ",*(p[i]+j));
  11. }
  12. }
  13.         return 0;
  14. }
  15.  
Parsed in 0.003 seconds