# Thread: Where to get the value of 0xd?

1. ## Where to get the value of 0xd?

I am not familiar with equivalent of address (I dont know if that is the correct term), such as 0xd, 0x10, 0x0B, 0x3f, 0xcf, 0xf3, 0xfc etc... I am studying with Hard Programming in C but this terms really confused me... What are these address? and How can I convert it to digits? Please enlighten me.. Thanks.

2. Read up on hexadecimal (this may be better). The Windows calculator will convert them to decimal, just input the digits in "hex" mode (the 0x is a prefix to mark a number as hexadecimal and should not be inputted) and then switch to "dec" mode. So will Google. However, you will need to be familiar with hexadecimal so try doing some manually.

3. Thanks, i got it... thank you...

4. I am just confused about the prefix... so the important "0xd" is the "d"... I am just confused why there is a "0x"... anyway, this is a great help...

5. What do you mean? Are you confused as to the meaning of "0x__" numbers? They are hexadecimals. Integers are normally handled in base 10, using the digits 0-9. Hex uses 0-9 and a-f and counts in base 16. I'm sure a quick google will learn you everything you need.

EDIT: Darn, beaten.

The "0x" is there to tell the computer that "10" is actually equal to 16 in decimal, and should not be interpreted as "10" in the conventional base-10 way. You don't want to know the history behind the "0x", I can tell you...

6. I am just confused about the prefix... so the important "0xd" is the "d"... I am just confused why there is a "0x"...
Consider the number '10'. Is it a decimal number with the value ten, or a hexadecimal number with the value 16? We need to know which so the C language provides a prefix which will identify a number as hexadecimal.

7. if you're talking about addresses, you would have to do something like:

Code:
`unsigned long ValueAtAddress = (*(volatile unsigned long *)0x0000000D);`