• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in C Plus Plus by
Q:
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 20, 2021 in C Plus Plus by SakshiSharma
0 votes
asked Mar 12, 2020 in C Plus Plus by rahuljain1
...