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