title: C++11 iterate over jagged array?
body: <p>I'm trying to initialise a jagged array.
  Why doesn't this work:</p>
  
  <pre><code>int *arr[10];
  for (int *row : arr)
      row = new int[10];
  </code></pre>
  
  <p>it runs but then arr is unreadable.</p>
  
  <p>How can I use this form of "for" properly in this situation?</p>
  
  <p>Otherwise how can I just initialise a jagged array of X rows, each row is Y elements and set all to zero?</p>