fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int (*arr_ptr)[5];
  5. int a[2][5] = {{1, 2, 3, 4, 5}, {11, 12, 13, 14, 15}};
  6. arr_ptr = a;
  7. printf("%d %d\n", (*arr_ptr)[2], arr_ptr[1][2]);
  8. return 0;
  9. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
3 13