I have read at few places that it is not good to use fflush (stdin) as result may be undefined.
So what shall I use? Without this I am facing problems whenever i try to read a string from keyboard when I have read something before. I am using MinGW compiler.