Vidyalelo
C Programming · Q166

Structure and Union

Programming · C Programming · question 166

Q166

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

A.
Compile time error
Answer
B.
Varies
C.
hi
D.
h

Answer: Option A

Solution

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