#include <stdio.h> int main(void) { char txt[10]; scanf("%s", &txt); printf("%s", txt);} //https://pt.stackoverflow.com/q/251918/101
teste
prog.c: In function ‘main’: prog.c:5:10: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Werror=format=] scanf("%s", &txt); ^ cc1: all warnings being treated as errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!