Which option gives the correct interpretation of the following declaration in…

2018

Which option gives the correct interpretation of the following declaration in C++?
int(*p[5])();

Answer: B. p is an array of pointers to function

  1. A.

    p is a pointer to function

  2. B.

    p is an array of pointers to function

  3. C.

    p is a pointer to such function which return type is array

  4. D.

    p is a pointer to an array of functions

Attempted by 299 students.

Show answer & explanation

Correct answer: B

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…