Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the correct way to allocate memory for an integer array dynamically?
int arr = malloc(5 * sizeof(int));
int arr = (int)malloc(5 * sizeof(int));
int *arr = (int *)malloc(5 * sizeof(int));
int *arr = malloc(5 * sizeof(int));
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!