Re: [Dev-C++] Question about bit representation
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-07-07 12:57:45
|
Ioannis Vranos wrote: > However it seems to be printed in the opposite way (try making d an unsigned > char). Perhaps it is the way it is implemented in the system, or I am taking > something in the opposite way that I can't find out? It is probably because of endianness, and it is normal. Because you directly access the memory, where the double is stored, it is system-dependent whether the low or high order byte comes first. Most systems are little endian (but there are many that are big endian). Look on the net for more details about little and big endian stuff. -- Greetings, Balázs |