So a quick google search for fflush(stdin)
for clearing the input buffer reveals numerous websites warning against using it. And yet that's exactly how my CS professor taught the class to do it.
How bad is using fflush(stdin)
? Should I really abstain from using it, even though my professor is using it and it seems to work flawlessly?