All mock tests are FREE till 31 December — register to save your progress

What is x in the following program?
#include <stdio.h>
int main() {
  typedef int (*(*arrfptr[3])())[10];
  arrfptr x;
  return 0;
}

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. x is an array of three function pointers

Explanation

arrfptr is an array of 3 pointers to functions, each returning a pointer to an array of 10 ints. So x is an array of three function pointers.

More Programming Languages and Computer Graphics questions