Vidyalelo
C Programming · Q246

Pointer

Programming · C Programming · question 246

Q246

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("%s", s.name);

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

Answer: Option C

Solution

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