Character Set

Previous Lesson                                                                          Next Lesson

" Character Set "



C language provide four different type's of Characters set which is use to create C - programme

All the Character set of the c language is based on ASCII (American Stander Code For Information Interchange )

There are each Character set have its own ASCII value 
Computer System understand there Character set via There Ascii code
  




1. Alphabet

Alphabet is the important Character set of the "C" Language, this language use all the alphabets in our programme, Each alphabets have its own ASCII value 
We can use Actual Alphabets or its ASCII value. both are same work in our programme

Note:

In C language capital and small letter are too different. because Capital Alphabets and Small alphabets have different ASCII value. and System understand all the alphabets using there ASCII value.











Programme code:

value=65; or value='A';

printf("%c",value);   // we discus about printf and %c latter 
 _____________
| A

65 and 'A' both are same is c language because both are present to the 'A'


2. Digit's

Digit's is the important Character set of the "C" Language, this language use all the Digit's in our programme, Each Digit's have its own ASCII value 
We can use Actual Digit's or its ASCII value. both are same work in our programme


Programme code:

value=53;
printf("%c",value); 
 ___________    
| 5












3. Spacial Symbol's 

Symbol's  is the important Character set of the "C" Language, this language use all the Symbol's in our programme, Each Symbol's have its own ASCII value 

We can use Actual Symbol's or its ASCII value. both are same work in our programme

C language use various type's of special symbols














4. Space


Space is also important Character set of the "C" Language, this language use all the types of space like blank space, back space, tab space, v - space , h - space ...etc in our programme, Each Space have its own ASCII value 


We can use Actual Space or its ASCII value. both are same work in our programme



Previous Lesson                                                                          Next Lesson

No comments:

Post a Comment