bobmon@iuvax.UUCP (02/16/87)
Hi out there . . . I've seen a number of articles using a notation like 0x0a, 0x34f2 and so forth. From context I see that these are hexadecimal values, but what does the '0x' part indicate?
jl42#@andrew.cmu.edu.UUCP (02/17/87)
CC: Whenever you see the prefix 0x on a number, it is specifically to indicate that the number is in hexadecimal, so that you don't need to determine that from the context. In particular, 'C' uses that to decide that is is 0xhex rather than decimal rather than 0octal (0x0010 = 16 = 020) -Jay Libove -jl42@andrew.cmu.edu -jl42@cmuccvma.bitnet
bobmon@iuvax.UUCP (02/18/87)
WOW!! Thanks to the 0x0010 (at least) people who've directed me to K&R for 0x. Personally I like the "dollar sign" notation better, but I can accept that it would be repellent to those gurus at non-revenue-generating Bell Labs :-)
vanzandt@uiucdcsp.UUCP (02/18/87)
Minor response: 0x = this is a hexidecimal constant which follows.