Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How do you allocate memory for a 2D array using pointers in C++?
int arr[2][2];
int *arr = new int[2]; for(int i = 0; i < 2; ++i) arr[i] = new int[2];
int **arr = new int[2][2];
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!