Which of the given options best describes the following array declaration in…
2019
Which of the given options best describes the following array declaration in C++? int (*arr)[5]; ----------------------------------------
- A.
It declares a pointer to an integer array of five elements.
- B.
It declares an array of five integer pointers.
- C.
It declares an array of ten integer pointers.
- D.
It declares a pointer to a character array of five elements.
Attempted by 202 students.
Show answer & explanation
Correct answer: A
The parentheses indicate that arr is a pointer, and it points to an array of 5 integers.