title: While loop with fscanf
body: <pre><code>int* data=(int*)malloc(size*sizeof(int));
  int i=0,tmp;
  while(fscanf(m,"%d",&amp;tmp)!=EOF)data[i++]=tmp;
  </code></pre>
  
  <p>Why it's working instead of this? :</p>
  
  <pre><code>int* data=(int*)malloc(size*sizeof(int));
  int i=0;
  while(fscanf(m,"%d",data[i++])!=EOF);
  </code></pre>