Character Set of C language | all available characters in C language

Spread the love

ANSI C have basic character set which includes Alphabets,Digits,Special Characters,Escape Sequences,..

Character Set in C language

Alphabets :

The 52 upper and lower case letters of Latin Alphabets.
 
A,B,C,D…………..Z
a,b,c,d,…………….z 
 

Digits :

The ten decimal digits starting from zero.
0 1 2 3 4 5 6 7 8 9
 

Special Characters :

C supports 29 special characters those are,  
 
! ” # & ‘ ( ) * % + , – / . ; : < = > ? [ ^ ] -_ { } | ~
 
and also supports Five White Space characters: space, horizontal tab, vertical tab,newline, form feed.
 

ANSI C Escape Sequences :

 
All C characters are printed on console but some Characters such as Line Feed(new line), tab, question mark(?), backslash()  can not be printed like normal characters. so print these characters we use Escape sequences.
  • A Escape sequence always starts with the backslash().
  • For Example a line feed in C printed by using ‘n’  Escape Character. This type character refers to a single character even though they are written in two characters.
The Complete list of Escape Characters is listed below. 

Character
Escape Sequence
ASCII Value
Back Space
b
08
Bell
a
07
Horizontal Tab
t
09
New Line
n
10
Vertical Tab
v
11
Form Feed
f
12
Carriage Return
r
13
Quotation Mark
34
Apostrophe
039
Question Mark
?
063
Backslash
092
NULL
0
 

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply