Vidyalelo
C Programming · Q106

Structure and Union

Programming · C Programming · question 106

Q106

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

A.
Different address
B.
Run time error
C.
Nothing
D.
Same address
Answer

Answer: Option D

Solution

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