title: Difference btw gets, scanf('%s'), getline
body: <p>I was reading <a href="https://www.quora.com/What-algorithm-questions-were-you-asked-at-an-Amazon-Microsoft-Google-interview" rel="nofollow">this</a> question on quora and read that google asked this question in one of its interviews,</p>
  
  <p><strong>What are the differences between the functions :
  scanf("%s"),gets and getline</strong></p>
  
  <p>Can anyone provide an exhaustive list and their explanation.</p>