Skip to content

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 ;
}
  1. A
    $x$ is a pointer
  2. B
    $x$ is a array of three pointer
  3. C
    $x$ is an array of three function pointer
    Correct answer
  4. D
    Error 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.