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