Vidyalelo
C Programming · Q158

Structure and Union

Programming · C Programming · question 158

Q158

What will be the output of the following C code? #include struct student char a[5]; ; void main() struct student s[] = "hi", "hey"; printf("%c", s[0].a[1]);

A.
h
B.
i
Answer
C.
e
D.
y

Answer: Option B

Solution

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