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 dynamically allocate memory for an array in C++ using pointers?
int arr[10];
int *arr = malloc(10 * sizeof(int));
int *arr = int[10];
int *arr = new int[10];
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!