R

Ranjeet • 34.60K Points
Instructor I

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
  • Correct Answer - Option(B)
  • Views: 50
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics