Computer bit, byte, word, character relationship

Source: Internet
Author: User
Tags alphabetic character
1. A bit (bit) represents bits. Bits are the smallest unit of data storage within a computer, and 11010100 is a 8-bit binary number.
2. byte (byte) is denoted by "B" in uppercase. Bytes are the basic unit of data processing in a computer. In your computer
Stores and interprets information in bytes, which specifies that a byte consists of eight bits, that is, 1 bytes equals 8 bits (1byte=8bit).
Eight-bit binary number minimum is 00000000, the maximum is 11111111; usually 1 bytes can be stored in an ASCII code, 2 bytes can hold a Chinese character GB code.

3. Word computer for data processing, one access, processing and transmission of the length of the information is called the word, a word is usually composed of one or more bytes of integer, the length of the computer determines how much CPU a one-time operation to deal with the actual number of bits.
For example, a 32-bit computer, the number of bits per access is 4 bytes, and 64-bit computers, the number of bits per access is 8 bytes.

4. Character characters refer to the text and symbols used in the computer, such as: 1, 2, 3, 4, #¥% .... Wait a minute. In different encodings, the correspondence between characters and bytes is different:
In the ASCLL code, an English letter (no case) occupies a byte space, making a Chinese character account for two byte space.
Under UTF-8 encoding, an English character equals one byte, and one Chinese equals three bytes (including traditional).
In Unicode, one English equals two bytes, one Chinese (with traditional) equals two bytes; sign: English punctuation is one byte, Chinese is two bytes. Some extended Kanji accounts for four bytes.
In UTF-16 encoding, an English alphabetic character or kanji character is two bytes.
In UTF-32 encoding, the storage of any character requires 4 bytes.

Computer bit, byte, word, character relationship

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.