?
What will be the output of the following C code (Assuming size of int and float is 4)?
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));
}
#include <stdio.h>
union
{
int ival;
float fval;
} u;
void main()
{
printf("%d", sizeof(u));
}
Join the Discussion
Login to post a comment or share your explanation.
Login