Which statement correctly allocates an array of 10 integers dynamically in C++?
Options
- A. int *p = new int[10];
- B. int *p = new int(10);
- C. int p = new int[10];
- D. More than one of the above
- E. None of the above
Quiz Practice:
A. int *p = new int[10];