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]; ----------------------------------------

  1. A.

    It declares a pointer to an integer array of five elements.

  2. B.

    It declares an array of five integer pointers.

  3. C.

    It declares an array of ten integer pointers.

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs