title: 2D Dynamic array in C++
body: <p>If I declare a 2D dynamic array in C++ using the following code:</p>
  
  <pre><code>int *arr2D[2];              //allocating rows statically
  for(int i=0;i&lt;2;i++)
  {
       arr2D[i]=new int[6];   //for each row, 6 columns are dynamically allocated
  }
  </code></pre>
  
  <p>Then how should I enter and display values in this 2D dynamic array using loops?
  (issues with dynamic array traversal for entering and displaying values in it after its allocation)</p>