In this tutorial you will learn about the C Character Set and its application with practical example.
A character set in C Programming Language is set all valid characters that can be used to form words, numbers, and expression’s in source programs. The source character set is consist of the characters used for the source program text, while the execution character set is the set of characters used during the execution of the program.
It is not necessary that the source character set match and execution character set are the same.
Below is the list of characters available in C Programming Language –
The 26 lowercase Roman characters:
1 |
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 |
The 26 uppercase Roman characters:
1 |
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 |
The 10 decimal digits:
1 |
0 1 2 3 4 5 6 7 8 9 |
The 30 graphic characters:
1 |
! # % ^ & * ( ) - _ = + ~ ' " : ; ? / | \ { } [ ] , . < > $ |
Five white space characters:
Space( ),Horizontal tab (\t) , Carriage return(\v), Newline(\n) , form feed (\f)