Binary | Oct | Dec | Hex | Abbreviation | [a] | [b] | [c] | Name | ||
---|---|---|---|---|---|---|---|---|---|---|
1963 | 1965 | 1967 | ||||||||
000 0000 | 000 | 0 | 00 | NULL | NUL | ␀ | ^@ |
\0 |
Null | |
000 0001 | 001 | 1 | 01 | SOM | SOH | ␁ | ^A |
Start of Heading | ||
000 0010 | 002 | 2 | 02 | EOA | STX | ␂ | ^B |
Start of Text | ||
000 0011 | 003 | 3 | 03 | EOM | ETX | ␃ | ^C |
End of Text | ||
000 0100 | 004 | 4 | 04 | EOT | ␄ | ^D |
End of Transmission | |||
000 0101 | 005 | 5 | 05 | WRU | ENQ | ␅ | ^E |
Enquiry | ||
000 0110 | 006 | 6 | 06 | RU | ACK | ␆ | ^F |
Acknowledgement | ||
000 0111 | 007 | 7 | 07 | BELL | BEL | ␇ | ^G |
\a |
Bell | |
000 1000 | 010 | 8 | 08 | FE0 | BS | ␈ | ^H |
\b |
Backspace[d][e] | |
000 1001 | 011 | 9 | 09 | HT/SK | HT | ␉ | ^I |
\t |
Horizontal Tab[f] | |
000 1010 | 012 | 10 | 0A | LF | ␊ | ^J |
\n |
Line Feed | ||
000 1011 | 013 | 11 | 0B | VTAB | VT | ␋ | ^K |
\v |
Vertical Tab | |
000 1100 | 014 | 12 | 0C | FF | ␌ | ^L |
\f |
Form Feed | ||
000 1101 | 015 | 13 | 0D | CR | ␍ | ^M |
\r |
Carriage Return[g] | ||
000 1110 | 016 | 14 | 0E | SO | ␎ | ^N |
Shift Out | |||
000 1111 | 017 | 15 | 0F | SI | ␏ | ^O |
Shift In | |||
001 0000 | 020 | 16 | 10 | DC0 | DLE | ␐ | ^P |
Data Link Escape | ||
001 0001 | 021 | 17 | 11 | DC1 | ␑ | ^Q |
Device Control 1 (often XON) | |||
001 0010 | 022 | 18 | 12 | DC2 | ␒ | ^R |
Device Control 2 | |||
001 0011 | 023 | 19 | 13 | DC3 | ␓ | ^S |
Device Control 3 (often XOFF) | |||
001 0100 | 024 | 20 | 14 | DC4 | ␔ | ^T |
Device Control 4 | |||
001 0101 | 025 | 21 | 15 | ERR | NAK | ␕ | ^U |
Negative Acknowledgement | ||
001 0110 | 026 | 22 | 16 | SYNC | SYN | ␖ | ^V |
Synchronous Idle | ||
001 0111 | 027 | 23 | 17 | LEM | ETB | ␗ | ^W |
End of Transmission Block | ||
001 1000 | 030 | 24 | 18 | S0 | CAN | ␘ | ^X |
Cancel | ||
001 1001 | 031 | 25 | 19 | S1 | EM | ␙ | ^Y |
End of Medium | ||
001 1010 | 032 | 26 | 1A | S2 | SS | SUB | ␚ | ^Z |
Substitute | |
001 1011 | 033 | 27 | 1B | S3 | ESC | ␛ | ^[ |
\e [h] |
Escape[i] | |
001 1100 | 034 | 28 | 1C | S4 | FS | ␜ | ^\ |
File Separator | ||
001 1101 | 035 | 29 | 1D | S5 | GS | ␝ | ^] |
Group Separator | ||
001 1110 | 036 | 30 | 1E | S6 | RS | ␞ | ^^ [j] |
Record Separator | ||
001 1111 | 037 | 31 | 1F | S7 | US | ␟ | ^_ |
Unit Separator | ||
111 1111 | 177 | 127 | 7F | DEL | ␡ | ^? |
Delete[k][e] |
from https://en.wikipedia.org/wiki/ASCII
#include <stdio.h> int main (void) { printf("EOF= d:%d u:%u x:%x \n", EOF, EOF, EOF); printf("LF = d:%d u:%u x:%x \n", 10, 10, 10); printf("EOF= c:%c \n", EOF); printf("LF = c:%c \n", 10); } young@USBMTSYS2 ~ $ ./a.out EOF= d:-1 u:4294967295 x:ffffffff LF = d:10 u:10 x:a EOF= c:� LF = c: ---> this is a blank line 0x10 = \n