Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

C++ | new and delete | Question 1

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

How to create a dynamic array of pointers (to integers) of size 10 using new in C++?

Hint: We can create a non-dynamic array using int *arr[10]
(A) int *arr = new int *[10];
(B) int **arr = new int *[10];
(C) int *arr = new int [10];
(D) Not Possible


Answer: (B)

Explanation: Dynamic array of pointer having size 10 using new is created as,

int **arr = new int *[10]; 

So, option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 29 Jul, 2020
Like Article
Save Article
Similar Reads