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