Please someone help me regarding the differencec b/w Structures and Unions.I know the differnce in the memory management but what is itz advantage .Also why are unions specifically used in mouse programming and similar stuff..
[QUOTE=Ancient Dragon]Normally I think unions are place inside structures[/QUOTE]They can also be very helpful outside structures, for example in this snippet I made some time ago. [URL="http://www.daniweb.com/code/snippet217147.html"][link][/URL] I used it in the [B]main[/B] scope as a structure inside of a union instead of the other way round. It helps when … Read More
Edited by Ancient Dragon: n/a
Edited by William Hemsworth: n/a