Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where does 0x come from? [duplicate]

Possible Duplicate:
Why are Hexadecimal Prefixed as 0x?

I just saw a comment a friend of mine made:

3x12=36
2x12=24
1x12=12
0x12=18

Which made me wonder..
Why did they choose 0x as prefix for hexadecimal numbers? Is there any history behind this decision?

like image 511
default Avatar asked Nov 23 '10 15:11

default


1 Answers

I think, because x comes from hex and 0 is to indicate that it is a number.

like image 84
khachik Avatar answered Sep 21 '22 06:09

khachik