ASCII码表查询

ASCII码的取值范围是0~127,可以用7个bit表示。C语言中char型变量的大小规定为一字节,如果存放ASCII码则只用到低7位,高位为0。

十进制二进制八进制十六进制字符
00000x0NUL     (Null char.)
11010x1SOH     (Start of Header)
210020x2STX     (Start of Text)
311030x3ETX     (End of Text)
4100040x4EOT     (End of Transmission)
5101050x5ENQ     (Enquiry)
6110060x6ACK     (Acknowledgment)
7111070x7BEL      (Bell)
810000100x8BS       (Backspace)
910010110x9HT       (Horizontal Tab)
1010100120xaLF       (Line Feed)
1110110130xbVT       (Vertical Tab)
1211000140xcFF       (Form Feed)
1311010150xdCR       (Carriage Return)
1411100160xeSO       (Shift Out)
1511110170xfSI         (Shift In)
16100000200x10DLE     (Data Link Escape)
17100010210x11DC1 (XON) (Device Control 1)
18100100220x12DC2     (Device Control 2)
19100110230x13DC3 (XOFF)(Device Control 3)
20101000240x14DC4     (Device Control 4)
21101010250x15NAK     (Negative Acknowledgement)
22101100260x16SYN     (Synchronous Idle)
23101110270x17ETB     (End of Trans. Block)
24110000300x18CAN     (Cancel)
25110010310x19EM     (End of Medium)
26110100320x1aSUB     (Substitute)
27110110330x1bESC     (Escape)
28111000340x1cFS     (File Separator)
29111010350x1dGS     (Group Separator)
30111100360x1eRS     (Request to Send)(Record Separator)
31111110370x1fUS     (Unit Separator)
321000000400x20SP     (Space)
331000010410x21!     (exclamation mark)
341000100420x22"     (double quote)
351000110430x23#     (number sign)
361001000440x24$     (dollar sign)
371001010450x25%     (percent)
381001100460x26&     (ampersand)
391001110470x27'     (single quote)
401010000500x28(     (left/opening parenthesis)
411010010510x29)     (right/closing parenthesis)
421010100520x2a*     (asterisk)
431010110530x2b+     (plus)
441011000540x2c,     (comma)
451011010550x2d -     (minus or dash)
461011100560x2e.     (dot)
471011110570x2f/     (forward slash)
481100000600x300
491100010610x311
501100100620x322
511100110630x333
521101000640x344
531101010650x355
541101100660x366
551101110670x377
561110000700x388
571110010710x399
581110100720x3a:     (colon)
591110110730x3b;     (semi-colon)
601111000740x3c<     (less than)
611111010750x3d=     (equal sign)
621111100760x3e>     (greater than)
631111110770x3f?     (question mark)
64100000001000x40@     (AT symbol)
65100000101010x41A
66100001001020x42B
67100001101030x43C
68100010001040x44D
69100010101050x45E
70100011001060x46F
71100011101070x47G
72100100001100x48H
73100100101110x49I
74100101001120x4aJ
75100101101130x4bK
76100110001140x4cL
77100110101150x4dM
78100111001160x4eN
79100111101170x4fO
80101000001200x50P
81101000101210x51Q
82101001001220x52R
83101001101230x53S
84101010001240x54T
85101010101250x55U
86101011001260x56V
87101011101270x57W
88101100001300x58X
89101100101310x59Y
90101101001320x5aZ
91101101101330x5b[     (left/opening bracket)
92101110001340x5c\     (back slash)
93101110101350x5d]     (right/closing bracket)
94101111001360x5e^     (caret/circumflex)
95101111101370x5f_     (underscore)
96110000001400x60`
97110000101410x61a
98110001001420x62b
99110001101430x63c
100110010001440x64d
101110010101450x65e
102110011001460x66f
103110011101470x67g
104110100001500x68h
105110100101510x69i
106110101001520x6aj
107110101101530x6bk
108110110001540x6cl
109110110101550x6dm
110110111001560x6en
111110111101570x6fo
112111000001600x70p
113111000101610x71q
114111001001620x72r
115111001101630x73s
116111010001640x74t
117111010101650x75u
118111011001660x76v
119111011101670x77w
120111100001700x78x
121111100101710x79y
122111101001720x7az
123111101101730x7b{     (left/opening brace)
124111110001740x7c|     (vertical bar)
125111110101750x7d}     (right/closing brace)
126111111001760x7e~     (tilde)
127111111101770x7fDEL     (delete)