Vidyalelo
C Programming · Q127

Structure and Union

Programming · C Programming · question 127

Q127

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.
Varies
D.
hello
Answer

Answer: Option D

Solution

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