1.

What will be the output of the following C code?
 #include <stdio.h>
int *fun()
{
int *ptr1 = 10;
return ptr1;
}
void main()
{
int *ptr2 = fun();
printf("%d", ptr2);
}

A. Garbage value
B. Compilation Error
C. Nothing
D. 10
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs