Examveda

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

A. h

B. i

C. e

D. y

Answer: Option B


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union