Why gcc is complaing about gets()
问题 This is my code(simplified): #include <stdio.h> #include <string.h> #define SIZE 240 int main(void) { char word[SIZE]; gets(word); return 0; } Why GCC is giving me №3.c: In function ‘main’: №3.c:13:2: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] this warning? GCC vesion is 5.2.1 P.S.The program is working. P.P.S. I will never use gets(), I will never use gets(), I will never use gets(), I will never use gets() 回答1: Function gets is not supported by the C