ASCII Character Set - C Programming For Beginners (2015)

C Programming For Beginners (2015)

Appendix B - ASCII Character Set

The following are the character codes used in the ASCII character set. Codes 0 to 31, and 127, are used for control characters. Some common ones are:

0

NULL

8

backspace (BS)

10

line feed (LF)

12

form feed (FF)

13

carriage return (CR)

The characters with codes 32 to 127 are shown in the table below.

Decimal

Binary

Char

32

0100000

space

33

0100001

!

34

0100010

"

35

0100011

#

36

0100100

$

37

0100101

%

38

0100110

&

39

0100111

'

40

0101000

(

41

0101001

)

42

0101010

*

43

0101011

+

44

0101100

,

45

0101101

-

46

0101110

.

47

0101111

/

48

0110000

0

49

0110001

1

50

0110010

2

51

0110011

3

52

0110100

4

53

0110101

5

54

0110110

6

55

0110111

7

56

0111000

8

57

0111001

9

58

0111010

:

59

0111011

;

60

0111100

<

61

0111101

=

62

0111110

>

63

0111111

?

64

1000000

@

65

1000001

A

66

1000010

B

67

1000011

C

68

1000100

D

69

1000101

E

70

1000110

F

71

1000111

G

72

1001000

H

73

1001001

I

74

1001010

J

75

1001011

K

76

1001100

L

77

1001101

M

78

1001110

N

79

1001111

O

80

1010000

P

81

1010001

Q

82

1010010

R

83

1010011

S

84

1010100

T

85

1010101

U

86

1010110

V

87

1010111

W

88

1011000

X

89

1011001

Y

90

1011010

Z

91

1011011

[

92

1011100

\

93

1011101

]

94

1011110

^

95

1011111

_

96

1100000

`

97

1100001

a

98

1100010

b

99

1100011

c

100

1100100

d

101

1100101

e

102

1100110

f

103

1100111

g

104

1101000

h

105

1101001

i

106

1101010

j

107

1101011

k

108

1101100

l

109

1101101

m

110

1101110

n

111

1101111

o

112

1110000

p

113

1110001

q

114

1110010

r

115

1110011

s

116

1110100

t

117

1110101

u

118

1110110

v

119

1110111

w

120

1111000

x

121

1111001

y

122

1111010

z

123

1111011

{

124

1111100

|

125

1111101

}

126

1111110

~

127

1111111

DEL