fork download
  1. void func(const int m, const int n, int arr[][n])
  2. {
  3. printf("%d\n", arr[4][2]);
  4. }
  5.  
  6. int main()
  7. {
  8. const int m = 5, n = 3;
  9. int arr[m][n];
  10.  
  11. arr[4][2] = 10;
  12. func(m, n, arr);
  13. }
Runtime error #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
10