Home » C Programming » Structures » Question
  1. What will be the output of the following C code according to C99 standard?
    #include <stdio.h>
    struct stru
    {
    int m;
    char n;
    float t;
    };
    int main()
    {
    struct stru R = {.n = 99, .t = 13, .m = 21};
    printf("%f\n", R.t);
    }
    1. Compilation Error
    2. 13.000000
    3. Garbage value
    4. Undefined behaviour
    5. None of these
Correct Option: B

13.000000



Your comments will be displayed only after manual approval.