Vidyalelo
C Programming · Q156

Structure and Union

Programming · C Programming · question 156

Q156

What will be the output of the following C code? #include struct student char *name; ; void main() struct student s[2], r[2]; s[1] = s[0] = "alan"; printf("%s%s", s[0].name, s[1].name);

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

Answer: Option C

Solution

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