ASCII value for ‘enter’ key or ‘carriage return’

Asked By 40 points N/A Posted on -

What is the ASCII value for ‘enter’ key or ‘carriage return’? How to determine ASCII value for any character?

Answered By 30 points N/A #189518

ASCII value for ‘enter’ key or ‘carriage return’


ASCII is the abbreviated form of American Standard Code for Information Exchange. ASCII code is used to transmit certain information or a text in encoded form. ASCII code is a 7-bit integer. The ASCII value of A to Z starts from (65)10 and a to z starts from (97)10.  ASCII code for ‘enter’ key or carriage return is 13 in decimal, 0D in hex and 00001101 in binary.

 The ASCII value for any character can be determined using online ASCII converter or can also be determined using the following C program:


void main()

{              char c;

                printf(“Enter a character:”);

                scanf(“%c”, &c);

                printf(“ASCII value of %c = %d”, c, c);



Answered By 572920 points N/A #189520

ASCII value for ‘enter’ key or ‘carriage return’


The ASCII value for the Enter key or carriage return is thirteen (13) for the decimal equivalent and 0D for the hexadecimal value. The term ASCII is the short term for “American Standard Code for Information Interchange”. It is the most common format for text files on a computer and on the internet.

In an ASCII file, every numeric, alphabetic, or special character is signified with a 7-bit binary number which is a string of seven zeros (0000000) or ones (1111111). DOS-based and Unix-based operating systems use ASCII for text files. However, in Windows NT and Windows 2000, Unicode is used which is a newer code while in IBM's S/390 systems EBCDIC is used, which is a proprietary 8-bit code.

ASCII was developed by ANSI or American National Standards Institute. If you want to know the ASCII equivalent of every character, go to ASCII Table and Description.

There are 256 ASCII codes where the first 32 codes 0 – 31 in the ASCII table are unprintable control codes and are used to control peripherals like printers; 32 – 127 contains printable characters like letters, digits, punctuation marks, and common symbols; and 128 – 255 are the extended ASCII codes.

Login/Register to Answer

Related Questions