Hi All,

I know unions(in c language) little bit. memory allocation for a variable of union depends on the memory of a field,which is occupying highest memory rather than other fields. so if we try to read the data to all the fileds in a union, it may cause to data violation.

Then what is the real usage of the Union? if u say a real example.. it will be more helpful to me.

Thanks:
regards:
raghunadhs