#include <stdio.h> void foo(int (*p)[]) { printf("%d\n", (*p)[1]); printf("%d\n", p[0][1]);} int main(void) { int a[] = { 5, 6, 7 }; foo(&a);}
Standard input is empty
prog.c: In function ‘foo’: prog.c:5: error: invalid use of array with unspecified bounds
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!