ASCII Character Set

VisualAge C++ uses the American National Standard Code for Information Interchange (ASCII) character set as its collating sequence.

The following table lists the standard ASCII characters in ascending numerical order, with their corresponding decimal, octal, and hexadecimal values. It also shows the control characters with Ctrl- notation. For example, the carriage return (ASCII symbol CR) appears as Ctrl-M, which you enter by simultaneously pressing the Ctrl key and the M key.

 

Decimal Value Octal Value Hex Value Control Character ASCII Symbol Meaning
0 0 00 Ctrl-@ NUL null
1 1 01 Ctrl-A SOH start of heading
2 2 02 Ctrl-B STX start of text
3 3 03 Ctrl-C ETX end of text
4 4 04 Ctrl-D EOT end of transmission
5 5 05 Ctrl-E ENQ enquiry
6 6 06 Ctrl-F ACK acknowledge
7 7 07 Ctrl-G BEL bell
8 10 08 Ctrl-H BS backspace
9 11 09 Ctrl-I HT horizontal tab
10 12 0A Ctrl-J LF new line
11 13 0B Ctrl-K VT vertical tab
12 14 OC Ctrl-L FF form feed
13 15 0D Ctrl-M CR carriage return
14 16 0E Ctrl-N SO shift out
15 17 0F Ctrl-O SI shift in
16 20 10 Ctrl-P DLE data link escape
17 21 11 Ctrl-Q DC1 device control 1
18 22 12 Ctrl-R DC2 device control 2
19 23 13 Ctrl-S DC3 device control 3
20 24 14 Ctrl-T DC4 device control 4
21 25 15 Ctrl-U NAK negative acknowledge
22 26 16 Ctrl-V SYN synchronous idle
23 27 17 Ctrl-W ETB end of transmission block
24 30 18 Ctrl-X CAN cancel
25 31 19 Ctrl-Y EM end of medium
26 32 1A Ctrl-Z SUB substitute
27 33 1B Ctrl-[ ESC escape
28 34 1C Ctrl-\ FS file separator
29 35 1D Ctrl-] GS group separator
30 36 1E Ctrl-^ RS record separator
31 37 1F Ctrl-_ US unit separator
32 40 20   SP digit select
33 41 21   ! exclamation point
34 42 22   " double quotation mark
35 43 23   # pound sign, number sign
36 44 24   $ dollar sign
37 45 25   % percent sign
38 46 26   & ampersand
39 47 27   ' apostrophe
40 50 28   ( left parenthesis
41 51 29   ) right parenthesis
42 52 2A   * asterisk
43 53 2B   + addition sign
44 54 2C   , comma
45 55 2D   - subtraction sign
46 56 2E   . period
47 57 2F   / right slash
48 60 30   0  
49 61 31   1  
50 62 32   2  
51 63 33   3  
52 64 34   4  
53 65 35   5  
54 66 36   6  
55 67 37   7  
56 70 38   8  
57 71 39   9  
58 72 3A   : colon
59 73 3B   ; semicolon
60 74 3C   < less than
61 75 3D   = equal
62 76 3E   > greater than
63 77 3F   ? question mark
64 100 40   @ at sign
65 101 41   A  
66 102 42   B  
67 103 43   C  
68 104 44   D  
69 105 45   E  
70 106 46   F  
71 107 47   G  
72 110 48   H  
73 111 49   I  
74 112 4A   J  
75 113 4B   K  
76 114 4C   L  
77 115 4D   M  
78 116 4E   N  
79 117 4F   O  
80 120 50   P  
81 121 51   Q  
82 122 52   R  
83 123 53   S  
84 124 54   T  
85 125 55   U  
86 126 56   V  
87 127 57   W  
88 130 58   X  
89 131 59   Y  
90 132 5A   Z  
91 133 5B   [ left bracket
92 134 5C   \ left slash, backslash
93 135 5D   ] right bracket
94 136 5E   ^ hat, circumflex, caret
95 137 5F   _ underscore
96 140 60   ` grave accent
97 141 61   a  
98 142 62   b  
99 143 63   c  
100 144 64   d  
101 145 65   e  
102 146 66   f  
103 147 67   g  
104 150 68   h  
105 151 69   i  
106 152 6A   j  
107 153 6B   k  
108 154 6C   l  
109 155 6D   m  
110 156 6E   n  
111 157 6F   o  
112 160 70   p  
113 161 71   q  
114 162 72   r  
115 163 73   s  
116 164 74   t  
117 165 75   u  
118 166 76   v  
119 167 77   w  
120 170 78   x  
121 171 79   y  
122 172 7A   z  
123 173 7B   { left brace
124 174 7C   | logical or, vertical bar
125 175 7D   } right brace
126 176 7E   ~ similar, tilde
127 177 7F   DEL delete