C Character Set

The characters that can be used to form words, numbers, and expressions are characters set in C. In C programming each character is represented by a number. The ASCII character set, for example, uses the numbers 0 through 127 to represent all English characters as well as special control characters.

  • Letters
A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z
a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z

  • Digits
0, 1, 2, 3, 4, 5, 6, 7, 8, 9

  • Special Characters
, – Comma. – Period; – Semicolon
: – Colon? – Question Mark‘ – Apostrophe
” – Quotation Mark! – Exclamation| – Vertical Bar
/ – Slash\ – Back Slash~ – TIlde
_ – Underscore$ – Dollar Sign% – Percent Sign
& – Ampersand^ – Caret* – Asterisk
– – Minus Sign+- Plus Sign<- Less Than (Opening Angle Bracket)
>- Greater Than (Closing Angle Bracket)(- Left Parenthesis)- Right Parenthesis
[- Left Bracket]- Right Bracket{- Left Brace
}- Right Brace#- Number Sign

  • White Spaces
Blank SpaceHorizontal TabCarriage Return
New LineForm Feed

ASCII Table

DECHEXOCTDECHEXOCTDECHEXOCTDECHEXOCT
0NUL32space64@96`
1SOH33!65A97a
2STX3466B98b
3ETX35#67C99c
4EOT36$68D100d
5ENQ37%69E101e
6ACK38&70F102f
7BEL3971G103g
8BS40(72H104h
9TAB41)73I105i
10LF42*74J106j
11VT43+75K107k
12FF4476L108l
13CR4577M109m
14SO46.78N110n
15SI47/79O111o
16DLE48080P112p
17DC149181Q113q
18DC250282R114r
19DC351383S115s
20DC452484T116t
21NAK53585U117u
22SYN54686V118v
23ETB55787W119w
24CAN56888X120x
25EM57989Y121y
26SUB58:90Z122z
27ESC59;91[123{
28FS60<92\124|
29GS61=93]125}
30RS62>94^126~
31US63?95_127DEL
ASCII Table

The purpose of ASCII table is to create the standard for the character sets used in electronic devices. The standard ensures that different devices can communicate with each other with the same character code.