I use this function quite a lot. Recently one of my friend told me it is not good to use fflush().
I googled it, and found that it gives some kind of unexpected behaviour. My question is when does this function works improperly and why?
Nowadays I use scanf("[^\n]") to flush input stream. Is this ok?