Home » C Programming » Unions » Question
  1. What will be the output of the following C code (Assuming size of int and float is 4)?
    #include <stdio.h>
    union
    {
    int Nval;
    float Fval;
    } U;
    void main()
    {
    printf("%d", sizeof(U));
    }
    1. 32
    2. 16
    3. 8
    4. 4
    5. None of these
Correct Option: D

4



Your comments will be displayed only after manual approval.