|
-
Aug 16th, 2007, 12:19 AM
#1
Thread Starter
Addicted Member
could u please say what is the real usage of "Unions" in C
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|