Vidyalelo
C++ Programming · Q52

Object Oriented Programming in C++

Programming · C++ Programming · question 52

Q52

What is the correct syntax of declaring array of pointers of integers of size 10 in C++?

A.
int arr = new int[10];
B.
int **arr = new int*[10];
Answer
C.
int *arr = new int[10];
D.
int *arr = new int*[10];

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board