#include <stdio.h>
#include <string.h>
typedef union
{
int a;
char b[10];
float c;
} union1;
int main()
{
union1 x;
union1 y = {100};
x.a= 50;
strcpy (x.b, "hello");
x.c = 21.50;
printf ("union X : %d %s %f\n", x.a, x.b, x.c);
printf ("union Y : %d %s %f\n", y.a, y.b, y.c);
}