At any point, we can use only one variable declared in union.
then why to use unoins in programs.
example
union student
{
char name [10];
int rollno;
};
At any point, we can use either "name" variable or "rollno" variable devcalred in union student.
please,kindly reply to this question.
then why to use unoins in programs.
example
union student
{
char name [10];
int rollno;
};
At any point, we can use either "name" variable or "rollno" variable devcalred in union student.
please,kindly reply to this question.
Comment