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