Vidyalelo
C Programming · Q100

Structure and Union

Programming · C Programming · question 100

Q100

What will be the output of the following C code? #include struct student char *name; ; struct student fun(void) struct student s; s.name = "alan"; return s; void main() struct student m = fun(); s.name = "turing"; printf("%s", m.name);

A.
alan
B.
Turing
C.
Compile time error
Answer
D.
Nothing

Answer: Option C

Solution

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