πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) int **arr = new int *[10];

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
185
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
94%
Success Rate