Click to See Complete Forum and Search --> : Problem with Bytes


shivakumarthota
June 3rd, 2002, 03:19 AM
I wanted to byte twiddle a double value!! for example if EF 01 are two bytes I wanted to change it to 01 EF. Similarly I wnated to do this for a double value. Any one who can help me?????

Shivakumar Thota

proxima centaur
June 3rd, 2002, 08:46 AM
you could be using unions.

check this post:

http://www.codeguru.com/forum/showthread.php?s=&threadid=189926&highlight=union+vs+struct

shivakumarthota
June 10th, 2002, 02:31 PM
[QUOTE]Originally posted by proxima centaur
[B]you could be using unions.

Thank you very much, your idea helped a lot and enabled me to complete the project succesfuly.

Thank you very very very much
Shivakumar Thota