A
aarklon
Hi folks,
Recently i was reading the book C an advanced introduction by narain
gehani,
in page no:236 it is written as
If a union contains several structures with a common initial sequence,
then members
of this sequence are guaranteed to have the same values and they can be
accessed
via any of the structures after the union has been initialized via one
of the structures
now can anybody give examples for this.???
does it mean that a union is having several structures as its data
members,and these structures are having same type of data elements and
if we are initializing the union
all the structure members will be having same value
Recently i was reading the book C an advanced introduction by narain
gehani,
in page no:236 it is written as
If a union contains several structures with a common initial sequence,
then members
of this sequence are guaranteed to have the same values and they can be
accessed
via any of the structures after the union has been initialized via one
of the structures
now can anybody give examples for this.???
does it mean that a union is having several structures as its data
members,and these structures are having same type of data elements and
if we are initializing the union
all the structure members will be having same value