#include <stdio.h> #include <string.h> int main(void) { char str[1000]; int i, len; return 0; }
ABCDEFGHIJK
prog.c: In function ‘main’:
prog.c:8:5: warning: ‘gets’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(str) // DO NOT USE THIS!
^
prog.c:9:5: error: expected ‘;’ before ‘len’
len = strlen(str);
^
Standard output is empty