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*;
মোঃ আরিফুল ইসলাম
Feb 20, 2025