fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int array[2][3] = {5,10,15,20,25,30};
  5. int (*ptr)[2][3] = &array; // line 1
  6. printf("%d\n",***ptr);
  7. printf("%d\n",*(*ptr)[1]);// line 2
  8. printf("%d\n",(*ptr)[1][2]);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
5
20
30