When I try to compile C code that uses the gets
function, I get a warning: warning: the gets function is dangerous and should not be used.
I remember this has to do something with stack protection and security, but I'm not sure. Can someone help me with removing this warning and explain why is there such warning? If gets
is "dangerous" then why can't we remove it?