The link give a nice explination about how to use unions but it does'nt explains much about allocation of memory in different endains. do u have some other link if possible
@kbw,
Sorry,I dont want to irritate u by saying that i dont have an idea of what 'uint32_t' is. I read it on http://www.cplusplus.com/reference/clibrary/cstdint
but still it did'nt get inside my crust..
I would be thankful to u if u can clear my concepts...I'm also trying
@kbw Thans for providing me the above link.Than was some real stuff to deal with. A diagram(Mapping registers to memory locations) explains the effect of endainness for 8,16 and 32 bits,but what if I declare union of 24 bits ???