title: Scanf not reading all numbers found in CSV in C
body: <p>I am trying to read a <code>CSV</code> file of integers and count their number. However, the code executes this while loop once.
  When i change the format of the file so that each number is on a separate line and no commas are there, it works. Can someone tell me where is my mistake? How can i make the loop work for <code>CSV</code>?</p>
  
  <pre><code>while(scanf("%d", &amp;otherNum)==1)
  {
      count++;
      printf("%d", otherNum);
  }
  </code></pre>