Vidyalelo
C Programming · Q145

Structure and Union

Programming · C Programming · question 145

Q145

What will be the output of the following C code? #include typedef struct student char *a; stu; void main() struct student s; s.a = "hey"; printf("%s", s.a);

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

Answer: Option D

Solution

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