Examveda

What will be the output of the following C code (Assuming size of int and float is 4)?
#include <stdio.h>
union
{
    int ival;
    float fval;
} u;
void main()
{
    printf("%d", sizeof(u));
}

A. 16

B. 8

C. 4

D. 32

Answer: Option C


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union