Q. Which of the following will correctly initialize a dynamic array of integers with 10 elements?
β
Correct Answer: (A)
int* arr = new int[10];
Explanation: In C++, the correct way to initialize a dynamic array is using the 'new' operator like 'int* arr = new int[10];'.