1.

What will be the output of the following C code?
#include <stdio.h>
int *fun();
void main()
{
int *ptr = fun();
printf("Welcome ");
printf("%d", ptr[0]);
}
int *fun()
{
int n[5] = {15, 18, 10};
return n;
}

A. Compilation Error
B. Welcome
C. 15 18 10
D. Segmentation fault
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs