C examples for Data Type:int
Hexadecimal (or hex ) refers to a base 16 system.
It uses powers of 16 and the digits 0 to 15, because base 10 doesn't have single digits to represent the values 10 to 15, hexadecimal uses the letters A to F for that purpose.
The following table lists Decimal, Hexadecimal, and Binary Equivalents
Decimal Digit | Hexadecimal Digit | Binary Equivalent | Decimal Digit | Hexadecimal Digit | Binary Equivalent |
---|---|---|---|---|---|
0 | 0 | 0000 | 8 | 8 | 1000 |
1 | 1 | 0001 | 9 | 9 | 1001 |
2 | 2 | 0010 | 10 | A | 1010 |
3 | 3 | 0011 | 11 | B | 1011 |
4 | 4 | 0100 | 12 | C | 1100 |
5 | 5 | 0101 | 13 | D | 1101 |
6 | 6 | 0110 | 14 | E | 1110 |
7 | 7 | 0111 | 15 | F | 1111 |