Sunday, 30 December 2018

C Character Set


Character set is important for any computer languages because this character is understood by the compiler. To write a program, we code, but the code has to be meaningful to the compiler. To write statement, expression, variable or custom function name, this are formed from this computer set.

C character sets are belows:
  • Uppercase letter A to Z
  • Lowercase letter a to z
  • The digit 0 to 9
  • And some special character sets
    +    -      *    /    =    %   &    # 
    !     ?     ^    "      '   ~      \      |
    <     >   (      )      {    }     [      ]
    :      ;     .     ,       _
Most versions of the language also allow certain other characters, such as @ and $, to be included within strings and comments. It also allow some White space characters. These are;
  • \b blank space
  • \t horizontal tab
  • \v vertical tab
  • \r carriage return
  • \f form feed
  • \n new line 
  • \\ Back slash
  • \’ Single quote
  • \" Double quote
  • \? Question mark
  • \0 Null
  • \a Alarm (Audible Note)

No comments:

Post a Comment

What Is The Difference Beween Numerals and Number?

Number is a concept, it is a mathematical concept. To express the quantitative value of the object, this  is developed in ancient history. S...