Kizspy | Question: 31
(Choose 1 answer)
Which of the following is a correct way to dynamically allocate memory for an array of 5 integers in C++?
A. int* array = new int[5];
B. int array = new int[5];
C. int array malloc(5* sizeof(int));
D. int array new int(5);