fork download
  1. #include <stdio.h>
  2.  
  3. void f (int **myarr)
  4. {
  5. for (int i = 0; i < 2; ++i)
  6. for (int j = 0; j < 2; ++j)
  7. printf ("%d", myarr[i][j]);
  8. }
  9.  
  10. int main ()
  11. {
  12. int myarr[][2] = { { 0, 1},
  13. {0, 1}};
  14. f (myarr);
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:14: error: passing argument 1 of ‘f’ from incompatible pointer type
stdout
Standard output is empty