Vidyalelo
C Programming · Q146

Pointer

Programming · C Programming · question 146

Q146

What will be the output of the following C code? #include int main() int *((*x)())[2]; x(); printf("after x "); int *((*x)())[2] int **str; str = (int*)malloc(sizeof(int)* 2); return str;

A.
Compile time error
Answer
B.
Undefined behaviour
C.
After x
D.
None of the mentioned

Answer: Option A

Solution

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