Home » C Programming » Unions » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    union U
    {
    int N;
    float F;
    };
    int main()
    {
    union U u, uu;
    u.N = 200;
    printf("%f\n", u.F);
    }
    1. Implementation dependent
    2. Compilation Error
    3. 200.000000
    4. 0.000000
    5. None of these
Correct Option: D

0.000000



Your comments will be displayed only after manual approval.