fork download
  1. #include <stdio.h>
  2.  
  3. void foo(int (*p)[]) {
  4. printf("%d\n", (*p)[1]);
  5. printf("%d\n", p[0][1]);
  6. }
  7.  
  8. int main(void) {
  9. int a[] = { 5, 6, 7 };
  10. foo(&a);
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘foo’:
prog.c:5: error: invalid use of array with unspecified bounds
stdout
Standard output is empty