title: C++ initializing the dynamic array elements
body: <pre><code>const size_t size = 5;
  int *i = new int[size]();
  
  for (int* k = i; k != i + size; ++k)                                            
  
  {                                                                               
   cout &lt;&lt; *k &lt;&lt;  endl;                                         
  
  }         
  </code></pre>
  
  <p>Even though I have value initialized the dynamic array elements by using the () operator, the output I get is </p>
  
  <pre><code>135368
  0
  0
  0
  0
  </code></pre>
  
  <p>Not sure why the first array element is initialized to 135368.</p>
  
  <p>Any thoughts ?</p>