C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)
C ASCII Character Set
Overview
The two tables of the ASCII character set contained in this appendix use these column headings:
Character’s ordinal number in the ASCII character setOrd.
Character’s octal representation (with left and right bytes)Octal
Character’s hexadecimal representationHex.
Character’s decimal representationDec.
Character code or character itself (such as “NUL” or “A”)Char
Meaning of character code (such as “Null” or “Uppercase A”)Meaning
Table 64 is in numeric order, and Table 65 is in alphabetic order.
ASCII Character Set in Numeric Order
Table 64 presents the ASCII character set in numeric order; that is, these columns are in numeric
order:
• Ord. (the character’s ordinal number in the ASCII character set)
• Octal (the character’s octal representation)
• Hex. (the character’s hexadecimal representation)
• Dec. (the character’s decimal representation)
If you know one of the above values for the character you want to look up, use Table 64. If you
know only the character code or the character itself (such as “NUL” or “A”), use Table 65: ASCII
Character Set in Alphabetic Order instead.
Table 64 ASCII Character Set in Numeric Order
Octal
MeaningChar.Dec.Hex.RightLeftOrd.
NullNUL0000000000000001
Start of headingSOH1010000010004002
Start of textSTX2020000020010003
End of textETX3030000030014004
End of transmissionEOT4040000040020005
EnquiryENQ5050000050024006
AcknowledgeACK6060000060030007
BellBEL7070000070034008
BackspaceBS8080000100040009
Horizontal tabulationHT90900001100440010
Line feedLF100A00001200500011
Vertical tabulationVT110B00001300540012
Form feedFF120C00001400600013
Carriage returnCR130D00001500640014
Overview 421