Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



What is x in the following program?
#include <stdio.h>

int main()
{
    typedef (*(*arrfptr[3])())[10];

    arrfptr x;

    return 0;
}





Solution

The declaration:

typedef (*(*arrfptr[3])())[10];

means arrfptr is an array of 3 pointers to functions.

So,

arrfptr x;

declares x as an array of three function pointers.


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...