UNION:
======
The
Union is also the same like structure. But only one ,main different
is it
will allocate the memory in commanly for the all members.And
it
will share the memory for all members.
Defining:-
==========
union
<tag-name>
{
members;
};
When
ever we execute in our program at that time, the processor will
allocate
the memory equal to the highest variable size.In here the
memory
space will take very less only. But we can not be able to access the
all
members at a time.
No comments: