title: Printing an array gives me more values than what the array actually has
body: <p>I tried to create a simple program that prints out the whole array but the program gives some values that aren't even in the array.  Why is that and how can I fix it?</p>
  <p>code:</p>
  <pre><code>#include &lt;cs50.h&gt;
  #include &lt;stdio.h&gt;
  
  int main (void)
  {
      int array[]={1,2,3,7};
      int len=sizeof(array);
      for(int i=0;i!=len;i++)
      {
          printf(&quot;%i\n&quot;,array[i]);
      }
  }
  </code></pre>
  <p>output that I want:</p>
  <pre><code>1
  2
  3
  7
  </code></pre>
  <p>what I get:</p>
  <pre><code>1
  2
  3
  7
  -1483754768
  32766
  0
  0
  4195904
  0
  -953930857
  32541
  1
  0
  -1483754760
  32766
  </code></pre>
  <p>So as you can see it prints out the values I placed inside the array but it also prints out a lot of values I never placed in it.</p>