Vidyalelo
C Programming · Q92

Structure and Union

Programming · C Programming · question 92

Q92

What will be the output of the following C code? #include int (*(x()))[2]; typedef int (*(*ptr)())[2] ptrfoo; int main() ptrfoo ptr1; ptr1 = x; ptr1(); return 0; int (*(x()))[2] int (*ary)[2] = malloc(sizeof*ary); return &ary;

A.
Compile time error
Answer
B.
Nothing
C.
Undefined behaviour
D.
Depends on the standard

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board