Categories
Quizzes
Ranks
Article
FAQ
Toggle Sidebar
Dynamic array
Dynamic array
A resizable array-like collection.
Progress
0/1 solved
1 questions
Concept practice
0/1 answered
Question 1 of 1
Question 1
How do you dynamically allocate memory for an array in C++ using pointers?
int arr[10];
int *arr = new int[10];
int *arr = malloc(10 * sizeof(int));
int *arr = int[10];
Previous
Check answer