Question: 41
(Choose 1 answer)
Which of the following statements correctly allocates memory for a dynamic array of 10 integers in C?
A. int a = (int)malloc(10 * sizeof(int));
B. int a[10] malloc(10 * sizeof(int));
C. int a = (int)calloc(sizeof(int), 10);
D. int a = (int)malloc(10);