UGC NET CS 2023Programming Languages and Computer Graphics › Programming in CVerified
UGC NET CS 2023 PYQ: What is $\mathrm{x}$ in the following program? # include < stdioh > int main ( ) {typedef (*(*…
What is $\mathrm{x}$ in the following program?
# include < stdioh >
int main ( )
{typedef (*(* arrfptr[3])())[10];
arrfptr x ;
return 0 ;
}- A$x$ is a pointer
- B$x$ is a array of three pointer
- C$x$ is an array of three function pointerCorrect answer
- DError in $x$ declaration
Answer
(C) $x$ is an array of three function pointer
Approach
Read the typedef declarator from the identifier outward.
Reviewed by UGC IQ Editorial Team.