1. Computer Science Engineering (CSE)
  2. CPP Programming
  3. How to create a dynamic array of pointer...
Q.

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. int **arr = new int *[10];
View all MCQs in:   CPP Programming

Discussion