Is the ascii code for a carriage return 10?

What is the ASCII value of the Enter key

The ASCII value of the Enter key is as follows:

The decimal value is 13,

The binary value is 1101,

The octal value is 015,

The hexadecimal value is 0x13.

ASCII is a computerized coding system based on the Latin alphabet that is primarily used to display modern English and other Western European languages. It is the most common single-byte coding system in use today and is equivalent to the international standard ISO/IEC646.Some of the characters and their corresponding ASCII codes are as follows:

In the standard ASCII coded character set, the "carriage return" is not visible characters, its ASCII code value is ()A: 0AHB:0BHC:0CHD:0DH

0BH, the ASCII code for the carriage return is 10, 10 in hexadecimal for the B

What is the ascii code for ‘\n’?

‘\r’ ASCII code for 13 is a carriage return, moving the current position to the head of this line.

printf(“xx\ryy\n”); xx will not be output.

‘\n’ ASCII code of 10 is a line feed, moving the current position to the next line.

printf(“xx\nyy\n”); two lines will be output:



‘\r’ is the character with an ASCII code of 13


C Language Carriage Return Code

1, \r is the carriage return character, where r is an abbreviation for return. The function of the carriage return character is to move the current position to the beginning of the line. “Carriage return key” on the use of “CR”, “RETURN” of the word, and later standardized as “Enter “. The ASCII code for enter is “0x0d” in hexadecimal and “13” in decimal.

2, other characters are detailed in the ASCII table: