What is the correct syntax of declaring array of pointers of integers of size 10 in C++? ; b) int **arr = new int*; c) int *arr = new int; d) int *arr = new int*;

What is the correct syntax of declaring array of pointers of integers of size 10 in C++? ; b) int **arr = new int*; c) int *arr = new int; d) int *arr = new int*; Correct Answer 10

As we have to declare an array of pointers of integers therefore we need double pointer array in which each element is collection pointers to integers. Therefore the correct syntax is int **arr = new int*;

Related Questions

A teacher asked the class to subtract 5 from 75.70% of the class said: 25. Their work was shown as: \(\begin{array}{*{20}{c}} {\begin{array}{*{20}{c}} 7&5 \end{array}}\\ {\underline {\begin{array}{*{20}{c}}\ { - 5} \ \ \ &{} \end{array}} }\\ {\underline {\begin{array}{*{20}{c}} 2&5 \end{array}} } \end{array}\) Which of the following describes the most appropriate remedial action that the teacher should take to clarify this misconception?