#include <stdio.h>
union my_union
{
int i;
float f;
char c;
};
int main()
{
union my_union u;
u.i = 42;
printf("The value of the integer member is %d\n", u.i);
u.f = 3.14;
printf("The value of the float member is %f\n", u.f);
u.c = 'A';
printf("The value of the char member is %c\n", u.c);
printf("The value of the integer member is %d\n",
u.i);
return 0;
}