Jump to content

What does the prefix 0x mean in hexadecimal?

Featured Replies

*nix (UNIX and related) shells, and likewise the C programming language, which was designed for UNIX (and the syntactical descendants of C[2]) use the prefix 0x for numeric constants represented in hex:

 

Wiki

 

looks like to denote the following number is hex

 

hope this helps

  • 2 years later...

0x[0-9|A|B|C|D|E|F]+ : Hexadecimal

 

0[0-7]+ : Octal

 

int Piano = (0xCDEFAB); // hexadecimal (0x..)

int Zero = (00); // octal (0..)

int JamesBond = (.007); // decimal (.xxx)

Edited by khaled

  • 3 weeks later...

IMHO, it is debatable all this

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.