Vidyalelo
C Programming · Q53

Structure and Union

Programming · C Programming · question 53

Q53

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

A.
Compile time error
B.
Nothing
C.
Junk values
D.
st st
Answer

Answer: Option D

Solution

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