title: How to check duplicate words in a string in C?
body: <p>I am solving a problem in C where i have to find duplicate words in astring like</p>
  
  <pre><code> char a[]="This is it This";
  </code></pre>
  
  <p>In above string "This" appears two times so I would like to count it as one.</p>
  
  <p>Can anybody suggest how to achieve this?</p>