+2 votes
in C Plus Plus by
Select the best from following can be considered as the correct syntax for declaring an array of pointers of integers that has a size of 10 in C++?

a) int arr = new int[10];

b) int *arr = new int*[10]

c) int **arr = new int*[10];

d) int *arr = new int[10];

1 Answer

0 votes
by

c) int **arr = new int*[10];

Related questions

+1 vote
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
+1 vote
asked Jan 20, 2021 in C Plus Plus by SakshiSharma
...