title: How are local and global variables initialized by default?
body: <p>Based on below, am i right?</p>
  
  <ul>
  <li>global_A reference is initialized to null.</li>
  <li>global_int is 0</li>
  <li>local_A reference is null</li>
  <li>local_int is uninitialized</li>
  <li>Both global_A.x and local_A.x is uninitialized.</li>
  </ul>
  
  <p>THanks for any help.</p>
  
  <hr>
  
  <pre><code>A global_A;
  int global_int;
  
  class A {
    public : int x;
  }
  
  int main()
  {
    int local_int;
    A local_A;
  }
  </code></pre>