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]; |
Login to Continue
It will take less than 2 minutes