title: Default initialization of C++ Member arrays?
body: <p>This is a simple question, but I can't seem to find a definitive answer.</p>
  
  <p>If we have the following class:</p>
  
  <pre><code>class Test
  {
  ...
    char testArray[10];
  
  ...
  }; 
  </code></pre>
  
  <p>When we create an instance of Test, what is the default value of testArray[1]?</p>
  
  <p>If it was a local array, it would be uninitialized.<br>
  If it was a static array, it would be initialized to 0.  </p>
  
  <p>What does it do when the array is a class member?</p>