Vidyalelo
C Programming · Q88

Structure and Union

Programming · C Programming · question 88

Q88

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

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

Answer: Option B

Solution

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