………………
datatype-n ListOfVariables;
};
Here,
union
is a keyword and
uname
is the name of the union data type. A union variable is
declared as a structure variable is declared. When a union variable is created, the C compiler
automatically allocates sufficient space to hold the largest data member of the union. Since all data
members of the union use the same space, whenever a data member changes, all other data members
will be changed automatically.
Do'stlaringiz bilan baham: