C language: the relationship between bits, bytes, and words

1. Bit
Bit is the smallest unit of computer storage, abbreviated as b, also known as bit (bit), the state of each bit can only be 0 or 1.
2. Byte
Byte, English Byte, is a unit of measurement used by computers to measure storage capacity. One byte can store one English letter or half a Chinese character.
3. Word
Word is a term that represents the natural data unit of a computer. In a particular computer, a word is a fixed-length bit group used to process transactions at one time.
For example: an 8-bit machine, its 1 word is equal to 1 byte, the word length is 8 bits. If it is a 16-bit machine, then its 1 word is composed of 2 bytes, and the word length is 16 bits.


  • The relationship between bit, byte and word
    1 word = 2 bytes, 1 word = 16 bits,
    1 byte = 8 bits, 1 bit = 1 bit
  • Computer storage
    1 B = 8 bit;
    1 KB = 1024B;
    1 MB = 1024 KB;
    1 GB = 1024 MB;
    1 TB = 1024 GB;

Guess you like

Origin blog.csdn.net/MQ0522/article/details/110134333