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];
3k
0
Do you find this helpful?
20

View all MCQs in

CPP Programming

Discussion

No comments yet

Related MCQs