title: fgets instructions gets skipped.Why?
body: <p>Whenever I do a scanf before a fgets the fgets instruction gets skipped. I have come accross this issue in C++ and I remember I had to had some instrcution that would clear the stdin buffer or something like that. I suppose there's an equivalent for C. What is it?</p>
  
  <p>Thanks.</p>