hi,
If I have a union like
union Type
{
struct Student s;
struct Employee e;
}type;
and a struct person like
struct Person
{
char firstname[10];
char familyname[20];
char telephone[10];
union Type type;
}p;
how can i check whether type of union in person is student or employee?can i say this: if(p.type==s)
thanks