简体   繁体   中英

How to represent a hex address in a string using little endian format?

Ok, suppose I want to store the address 0xcdddd298 in a C string so that it stores the bits for this address in little endian format. How would I do this? Would it be something like \x98d2ddcd ?

No. It would be "\x98\xd2\xdd\xcd" .

But I'm not sure why you'd want to store an address in a string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM