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