"Thomas Matthews" <Th***************@cox.networkwrote in message
news:44**************@cox.network...
phoenix_keeper wrote:
Why the value of 'ab\0\0' is 0x00616200, rather than 0x61620000 ?
The workset is win2k + VC6.
Any help would be appreciated.
Thanks.
CJ
Research the term "Little Endian".
No...
Let's ignore for a moment the fact that it is a character constant and not a
string constant, as KT pointed out.
The last value in the OP's question: 0x61620000 is "Big Endian." But, the
first value(0x00616200) is _neither_ "Little Endian" (0x00006261) or "Big
Endian" (0x61620000) (as they are currently defined, i.e, no remarks on PDPs
please...). The fact that his value 0x00616200 has 'a' before 'b' and isn't
properly "Big Endian", indicates something else is going on (see KTs post).
Rod Pemberton