#include <stdio.h>
#include <string.h>
union person
{
char name[50];
int age;
float salary;
};
int main()
{
union person p;
strcpy(p.name, "John");
printf("Name: %s\n", p.name);
p.age = 25;
printf("Age: %d\n", p.age);
p.salary = 2500.50;
printf("Salary: %f\n", p.salary);
return 0;
}