Problem Solving using C Language

0 of 77 lessons complete (0%)

Basics of Programming

ASCII Values

The ASCII (American Standard Code for Information Interchange) value is a numerical representation of characters in computers. ASCII assigns a unique 7-bit binary number (0 to 127) to each character, allowing computers to understand and process text.

In ASCII:

  • The values 0–31 are control characters (e.g., newline, backspace).
  • The values 32–126 represent printable characters, including numbers, uppercase and lowercase letters, and symbols.
  • The value 127 is a control character used for the delete function.

Here is the ASCII table with values from 0 to 127:

ASCII CodeCharacterDescription
0NULNull
1SOHStart of Heading
2STXStart of Text
3ETXEnd of Text
4EOTEnd of Transmission
5ENQEnquiry
6ACKAcknowledge
7BELBell
8BSBackspace
9HTHorizontal Tab
10LFLine Feed
11VTVertical Tab
12FFForm Feed
13CRCarriage Return
14SOShift Out
15SIShift In
16DLEData Link Escape
17DC1Device Control 1
18DC2Device Control 2
19DC3Device Control 3
20DC4Device Control 4
21NAKNegative Acknowledge
22SYNSynchronous Idle
23ETBEnd of Transmission Block
24CANCancel
25EMEnd of Medium
26SUBSubstitute
27ESCEscape
28FSFile Separator
29GSGroup Separator
30RSRecord Separator
31USUnit Separator
32(space)Space
33!Exclamation mark
34Double quote
35#Hash
36$Dollar sign
37%Percent
38&Ampersand
39Single quote
40(Left parenthesis
41)Right parenthesis
42*Asterisk
43+Plus
44,Comma
45Hyphen
46.Period
47/Slash
480Digit 0
491Digit 1
502Digit 2
513Digit 3
524Digit 4
535Digit 5
546Digit 6
557Digit 7
568Digit 8
579Digit 9
58:Colon
59;Semicolon
60<Less than
61=Equals
62>Greater than
63?Question mark
64@At symbol
65AUppercase A
66BUppercase B
67CUppercase C
68DUppercase D
69EUppercase E
70FUppercase F
71GUppercase G
72HUppercase H
73IUppercase I
74JUppercase J
75KUppercase K
76LUppercase L
77MUppercase M
78NUppercase N
79OUppercase O
80PUppercase P
81QUppercase Q
82RUppercase R
83SUppercase S
84TUppercase T
85UUppercase U
86VUppercase V
87WUppercase W
88XUppercase X
89YUppercase Y
90ZUppercase Z
91[Left square bracket
92\Backslash
93]Right square bracket
94^Caret
95_Underscore
96`Grave accent
97aLowercase a
98bLowercase b
99cLowercase c
100dLowercase d
101eLowercase e
102fLowercase f
103gLowercase g
104hLowercase h
105iLowercase i
106jLowercase j
107kLowercase k
108lLowercase l
109mLowercase m
110nLowercase n
111oLowercase o
112pLowercase p
113qLowercase q
114rLowercase r
115sLowercase s
116tLowercase t
117uLowercase u
118vLowercase v
119wLowercase w
120xLowercase x
121yLowercase y
122zLowercase z
123{Left curly brace
124
125}Right curly brace
126~Tilde
127DELDelete

This table represents the standard ASCII set, but ASCII can also be extended with codes up to 255 for additional symbols and special characters.