title: Loop is running more than specified in C? Why?
body: <p>If I enter the number 5, this loop has to run 5 times but it is running 6 times. What is the problem? </p>
  
  <pre><code> int main(){
          int i, *arr, size;
          printf("Please enter the Number: ");
          scanf("%d ",&amp;size);
          arr = (int*) malloc(size * sizeof(int));
          for(i = 0; i &lt; size; i++){
              scanf("%d ", &amp;arr[i]);
          }
   }
  </code></pre>