Forms of hex?

kprt

New Member
I've noticed two different ways hex numbers are shown- 0x00000000 and 00 00 00 00 00... Could someone explain what that is all about? Also, what is the "0x" part of the number? (0x00000000) Thanks
 
C and languages with a similar syntax (such as C++, C#, Java and Javascript) prefix hexadecimal numerals with 0x, e.g. 0x5A3. The leading 0 is used so that the parser can simply recognize a number, and the x stands for hexadecimal (cf. o for Octal and b for Binary). The x in 0x can be either in upper or lower case but is almost always seen written in lower case.

In other words, the 0x makes it easier for programing languages and such to read it, and 00 00 00... makes it easier for humans to read it :P
 
Back
Top