Vidyalelo
C Programming · Q63

Structure and Union

Programming · C Programming · question 63

Q63

What will be the output of the following C code? #include struct student char *c; ; void main() struct student m; struct student *s = &m; s->c = "hello"; printf("%s", m.c);

A.
Run time error
B.
Nothing
C.
hello
Answer
D.
Varies

Answer: Option C

Solution

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