1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
int *((*ptr)())[20];
ptr();
printf("After ptr n");
}
int *((*ptr)())[20]
{
int **s;
s = (int*)malloc(sizeof(int)* 20);
return s;
}

A. After ptr
B. Garbage vlaue
C. Undefined behaviour
D. Compilation Error
E. None of these
Answer» E. None of these


Discussion

No Comment Found