1.

What will be the output of the following C code?
#include <stdio.h>
struct Employee
{
char *ch;
};
void main()
{
struct Employee *e;
e->ch = "Prayag";
printf("%s", e->ch);
}

A. Compilation Error
B. Segmentation fault
C. Garbage value
D. Prayag
E. None of these
Answer» C. Garbage value


Discussion

No Comment Found

Related MCQs