title: Weird behavior when printing array in C?
body: <p>I am trying to print an array however I am not getting the desired output, weird numbers appear after the loop finishes printing the pre-defined array.</p>
  
  <p>Code is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;    
  int main(){    
      int intArray[11] = {1,2,8,12,-13,-15,20,99,32767,10,31};
      int i=0;        
      for(i=0;i&lt;sizeof(intArray);i++){
          printf("%d\n",intArray[i]);
      }
  }
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>1
  2
  8
  12
  -13
  -15
  20
  99
  32767
  10
  31
  11
  1629976468
  2674040
  2665720
  1627423265
  1
  2665616
  -2147417856
  1629976534
  1629976468
  2674040
  0
  1627423172
  1629976532
  0
  1629110043
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  1629976538
  0
  1629956432
  2674276
  0
  1627407935
  </code></pre>