Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Character Set

Posted By: Hollie Hughes     Category: C Programming     Views: 5441

This article explains about character set in c programming.

Character Set

  • The set of characters used to form words numbers and expressions is the char set
  • It is of four categories in C
    • Letters
    • Digits
    • Special characters
    • White spaces

Complete List of Char Set

  • Letters : Uppercase A..Z and lowercase a..z
  • Digits : all decimal digits 0..9
  • Special characters :
  •  , ; . : ? ‘(apostrophe)  “(quotation) ! | / \ ~ (tilde) _(underscore) – (minus)  $ % # & ^ (caret) * + < > ( ) [ ] { } 
  • White spaces : Blank spaces, Horizontal Tabs, Carriage return, New Line, Form feed

Trigraph Characters

  • Many non English keyboards do not support all the characters mentioned earlier
  • ANSI C introduces the concept of trigraph characters to provide a way to enter them
  • Each trigraph sequence consists of three characters, first two being question marks
  • So chars not available on KB may be entered in the program

ANSI C Trigraph Sequences

 Trigraph Sequence

 Translation

 ??=

 ??(

 ??)

 ??<

{

 ??>

 ??!

 ??/

 ??'

 ??-


  
Share: 

 
 

Didn't find what you were looking for? Find more on Character Set Or get search suggestion and latest updates.

Hollie Hughes
Hollie Hughes author of Character Set is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!