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

What is x in the following program? # include < stdioh>

int main ()
{typedef (* (* 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 pointer

Explanation

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

More Programming Languages and Computer Graphics questions