Author
anonymous
about 7 years ago
Language
Compiler
Options
Author
anonymous
about 7 years ago
$
prog.c: In function 'function1':
prog.c:4:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char **' [-Wformat=]
printf("%s", sentence);
~^ ~~~~~~~~
prog.c: In function 'main':
prog.c:13:15: warning: passing argument 1 of 'function1' from incompatible pointer type [-Wincompatible-pointer-types]
function1("Hello, world!\n");
^~~~~~~~~~~~~~~~~
prog.c:3:23: note: expected 'char **' but argument is of type 'char *'
void function1(char * sentence[]) {
~~~~~~~^~~~~~~~~~
Hello, world!
Hello, world!
Exit Code:
0