What will be the output of the following C code?
#include <stdio.h>
struct student
{
int no;
char name[20];
};
struct student s;
void main()
{
s.no = 8;
printf("%s", s.name);
}
#include <stdio.h>
struct student
{
int no;
char name[20];
};
struct student s;
void main()
{
s.no = 8;
printf("%s", s.name);
}
A. Nothing
B. Compile time error
C. Junk
D. 8
Answer: Option A
Join The Discussion