What will be the output of the following C code? [code] #include <stdio.h> struct student { char a[5]; }; void

Khang Lê

New member
What will be the output of the following C code?
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
 

Tìm kiếm

Back
Top