prog.c: In function ‘main’:
prog.c:7:5: error: too many arguments to function ‘func’
func(34); // call with parameter
^
prog.c:2:6: note: declared here
void func(void);
^
prog.c:6:9: warning: unused variable ‘ar’ [-Wunused-variable]
int ar[] = { 1, 2, 3 };
^
prog.c: In function ‘func’:
prog.c:13:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("func()");
^
prog.c:13:4: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]