Vidyalelo
C Programming · Q167

Structure and Union

Programming · C Programming · question 167

Q167

What will be the output of the following C code? #include void main() struct student int no; char name[20]; ; struct student s; s.no = 8; printf("%d", s.no);

A.
Nothing
B.
Compile time error
C.
Junk
D.
8
Answer

Answer: Option D

Solution

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