0x

0x

Translingual

Etymology

Originated in the notation for hexadecimal numbers in the C programming language (first major revision described in The C Programming Language, published 1978) and its descendants. Developed from an earlier #x used in BCPL, one of the ancestors of C. In BCPL, octal numbers used the # prefix (originally an underlined digit ), which was changed into a preceding zero in B. B did not support hexadecimal literals, but C (which was developed from it) did by reintroducing the BCPL syntax and changing the preceding # (#x) to 0 (0x) by analogy.

Symbol

0x

  1. (computing) Indicates that the number that follows is in hexadecimal.
    • 2007, J. R. Gibson, ARM Assembly Language - an Introduction (in English), page 106:
      Available RAM using ARMulator or Evaluator-7T extends from 0x8000 to 0xffff while that using the LPC2102 with the Keil tools is from 0x40000000 to 0x40000fff.
  • 0b (binary)
  • 0 / 0o (octal)