Home  >  Article  >  What is the ascii code for the enter key?

What is the ascii code for the enter key?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-05-14 16:27:5346050browse

In decimal, the ASCII code of the Enter key is "13"; in binary, the ASCII code of the Enter key is "0000 1101"; in octal, the ASCII code of the Enter key is "15"; hexadecimal Under control, the ASCII code of the Enter key is "0D".

What is the ascii code for the enter key?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

In decimal system, the ASCII code of the Enter key is 13

In addition, in binary, octal, hexadecimal and other common mathematical systems, the ASCII code of the Enter key is:

Bin (binary): 0000 1101;

Oct (octal): 15;

Hex (hexadecimal): 0D;

ASCII The first time it was published as a standardized type was in 1967, and the last update was in 1986. So far, a total of 128 characters have been defined; 33 of them cannot be displayed (some terminals provide extensions so that these characters can be displayed as 8-bit symbols such as smiley faces, playing card tricks, etc.), and most of these 33 characters are obsolete control characters.

The purpose of control characters is mainly to manipulate text that has been processed. In addition to the 33 characters there are 95 displayable characters. The blank characters generated by pressing the space key on the keyboard are also counted as 1 displayable character (displayed as blank).

What is the ascii code for the enter key?

Extended information:

ASCII codes have certain rules to follow. Just remember the corresponding numerical fields. Common The ASCII code values ​​of the characters are as follows:

The ASCII code value of a space is 32;

The ASCII code values ​​of numbers 0 to 9 are 48 to 57 respectively;

Capital letters " The ASCII code values ​​of A" to "Z" are 65 to 90 respectively;

The ASCII code values ​​of lowercase letters "a" to "z" are 97 to 122 respectively.

For more computer-related knowledge, please visit the FAQ column!

The above is the detailed content of What is the ascii code for the enter key?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn