正在加载图片...
Hexadecimal Numbers: Base 16 Hexadecimal 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Normal digits 6 more from the alphabet In C, written as OX.(e.g., OXFAB5) Conversion: BinarysHex 1 hex digit represents 16 decimal values 4 binary digits represent 16 decimal values =1 hex digit replaces 4 binary digits One hex digit is a“ nibble". Two is a“byte” Example: 101011000011( binary)=0x CS61C L02 Number Re presentation(8 Garcia, Spring 2007CS61C L02 Number Representation (8) Garcia, Spring 2007 © UCB Hexadecimal Numbers: Base 16 • Hexadecimal: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F • Normal digits + 6 more from the alphabet • In C, written as 0x… (e.g., 0xFAB5) • Conversion: BinaryHex • 1 hex digit represents 16 decimal values • 4 binary digits represent 16 decimal values 1 hex digit replaces 4 binary digits • One hex digit is a “nibble”. Two is a “byte” • Example: • 1010 1100 0011 (binary) = 0x_____ ?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有