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