πŸ“Š CPP Programming
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

πŸ‘οΈ
982
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate