title: Populating an array with 100 integers in C
body: <p>I am taking the free CS50 online class. In one of the video tutorials, the teacher mentions the ability to fill an array with 100 integers, and that it is good practice. I am trying to do that exact thing right now and I am having a difficult time figuring it out.</p>
  
  <p>Note: I have only seen answers including scanf functions and pointers. Is that the only way to solve it, or can it be solved without scanf and pointer?</p>
  
  <p>This is barely the closest I can get...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cs50.h&gt;
  #include &lt;ctype.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(void)
  {
  
  int fill_array[100];
  
  for(int i = 0; i &lt;= 100; i++)
  {
      fill_array[99] = i;
      printf("%i", fill_array[i]);
  }
  }
  </code></pre>
  
  <p>Prints out a ton of random numbers and this error:</p>
  
  <pre><code>fillingarray.c:14:18: runtime error: index 100 out of bounds for type 'int [100]'
  665999424
  </code></pre>