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 i;
    char ch;
    float flt;
    };
    int main()
    {
    struct stru Res = {.ch = 333};
    printf("%f\n", Res.flt);
    }
    1. 333.000000
    2. Compilation Error
    3. Garbage value
    4. 0.000000
    5. None of these
Correct Option: D

0.000000



Your comments will be displayed only after manual approval.