Author
anonymous
almost 6 years ago
$
prog.c: In function 'main': prog.c:7:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[100]' [-Wformat=] 7 | scanf("%99s", &str); // WRONG, but probably works. | ~~~^ ~~~~ | | | | | char (*)[100] | char *