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