Why is implicit declaration of gets() not allowed in C99?
问题 I am starting to learn programming in C language the book I am refering to code shows some source code with gets() and my IDLE recognises it as well. But still while compiling it, my compiler doesn't agree with it. Can anyone help me out? I am using gets() in the main function and using clang as the compiler. 回答1: Expanding on my comment: First, never use gets() , for any reason, even in toy code. If you see it in an example program, ignore the example and move on. It was deprecated in C99