Home » C Programming » Structures » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    struct Option
    {
    int a;
    int b;
    };
    void fun(struct Option*);
    int main()
    {
    struct Option opt1[] = {13, 23, 33, 43};
    fun(opt1);
    }
    void fun(struct Option opt2[])
    {
    printf("%d\n", opt2[1].a);
    }
    1. 13
    2. 23
    3. 33
    4. 43
    5. None of these
Correct Option: C

33



Your comments will be displayed only after manual approval.