Home » C Programming » Functions » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    struct Employee
    {
    char name[20];
    };
    void main()
    {
    struct Employee emp[] = {"AJIT", "KUMAR"};
    printf("%c", emp[0].name[1]);
    }
    1. A
    2. J
    3. I
    4. K
    5. None of these
Correct Option: B

J



Your comments will be displayed only after manual approval.