title: C++: Unnitialized(?) Array on the Stack (example regarding OpenGL)
body: <p>What is the contents of an array that is created on the stack, but has no values put in it? Like this:</p>
  
  <pre><code>int array[4]
  cout &lt;&lt; array[2];
  </code></pre>
  
  <p>I ask this because I have always seen in OpenGL when textures are generated, it is done like this:</p>
  
  <pre><code>GLuint textures[4];
  glGenTextures(4, &amp;textures[0]);
  
  glBindTexture(GL_TEXTURE_2D, textures[2]);
  </code></pre>
  
  <p>What is the deal with this?</p>
  
  <p>Thanks.</p>