fork download
  1. #include <stdio.h>
  2.  
  3. int det(int* a, int n, int sz){
  4. printf("a[%d][%d]\n", sz/n/sizeof(*a), n);
  5. *(a+5*n+15) += 50;
  6. return 0;
  7. }
  8.  
  9. #define ARY_N 20
  10.  
  11. int main(){
  12. int a[10][ARY_N];
  13. a[5][15] = 100;
  14. det(&a[0][0], ARY_N, sizeof(a));
  15. printf("%d\n", a[5][15]);
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
a[10][20]
150