The ascii code is stored in 1 byte in the computer. The ASCII code has a total of 128 characters. Each character corresponds to a numerical value, which is called the ASCII code value of the character; the computer uses one byte internally. (8 binary bits) stores a 7-bit ASCII code value.
#The operating environment of this article: Windows 7 system, Dell G3 computer.
How many bytes does the ascii code use to store in the computer?
The ascii code is stored in 1 byte in the computer.
Byte (Byte) is a unit of measurement used by computer information technology to measure storage capacity. It also represents data types and language characters in some computer programming languages. One byte stores an 8-bit unsigned number, and the stored value range is 0-255. Like characters, byte type variables only require one byte (8 bits) of memory space to store.
ASCII code has a total of 128 characters. Each character corresponds to a numerical value, which is called the ASCII code value of the character. The computer uses one byte (8 binary bits) to store a 7-bit ASCII code value.
Extended information:
Standard ASCII code, usually also called 7-bit code, consists of 7-bit binary code, the highest bit is 0, Its range is represented as 00000000~01111111 in binary and 0~127 in decimal, a total of 128 types. Each code represents a basic symbol. That is to say, ASCII code can be used to represent up to 128 basic symbols.
The 7-bit ASCII code is composed of a binary code of a group of 3 bits and a group of 4 bits. A group of 3 bits constitutes 7 columns, and a group of 4 bits constitutes 15 rows. The behavior is the lower 4 digits and the column is the upper 3 digits. According to the column and row positions of letters and numbers, an ASCII code can be fixed. For example: the letter A is located in column 4 and row 1, that is, the ASCII code is 01000001BCD. Similarly, given a 7-bit ASCII, a corresponding number, letter or symbol can be immediately found.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of How many bytes does the ascii code take to store in the computer?. For more information, please follow other related articles on the PHP Chinese website!