Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Every byte consists of 8 bits. Every bit has a value of 0 or 1. Here are some examples of bytes, words and double words shown as bit strings (we can also see clearly the correspondence between 4 bit sequences and hexadecimal numbers, Table 3.1):
Byte
C / C++: unsigned char
Windows definitions: BYTE, UCHAR
8 bits
Values 0dec - 255dec or 0hex - FFhex
Example: 12dec 00001100bin 0Chex
Word
C / C++: unsigned short
Windows definitions: USHORT, WORD
16 bits
Values 0dec - 65535dec or 0hex - FFFFhex
Example: 0000000000001100bin 000Chex
Double word
C / C++: unsigned int, unsigned, unsigned long
Windows definitions: DWORD, UINT, ULONG
32 bits
Values 0dec - 4294967295dec or 0hex - FFFFFFFFhex
Example: 00000000000000000000000000001100bin 0000000Chex