If I declare a 2D dynamic array in C++ using the following code:
int *arr2D[2]; //allocating rows statically
for(int i=0;i<2;i++)
{
arr2D[i]=new int[6]; //for each row, 6 columns are dynamically allocated
}
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)