Home » C Programming » Structures » Question
  1. What will be the output of the following C code according to C99 standard?
     #include <stdio.h>
    struct S
    {
    int i;
    char ch;
    float flt;
    };
    int main()
    {
    struct S R = {.ch = 45, .i = 11, 31};
    printf("%f \n", R.flt);
    }
    1. 31.000000
    2. Compilation Error
    3. Garbage value
    4. Undefined behabiour
    5. 0.000000
Correct Option: E

0.000000



Your comments will be displayed only after manual approval.