Explain Union in c
struct student
{
introllno;
char name[50];
float salary;
};
union is used to
group a number of different variables together.
In
structure number of different variables of different data type stored in
different memory places but in union different variable of different
data type are store in same place.
Example:
struct student
{
introllno;
char name[50];
float salary;
};