Character set and keywords in C

Like other languages, C has some character set and keywords (reserved words). It is good to know some important character set and keywords in C because it will help during the programming.

C language character set:

  • Lowercase and uppercase letters of ISO Basic Latin Alphabet: a–z A–Z
  • Decimal digits: 0–9
  • 29 graphic characters

    !  ”  #  %  &  ‘ (  )  *  +  ,  – .  /  :
    ;  <  =  >  ?  [  \  ]  ^  _  {  |  }  ~

  • Whitespace characters: space, horizontal tab, vertical tab, form feed, newline (Newline indicates the end of a text line), carriage return, backspace,..etc.

Keywords in c (Reserved words):

C89 has 32 reserved words (keywords). These keywords are case sensitive and only use for the purpose which they are predefined.

C Reserved words

 

Except for these old keywords, In C99 and C11 (new C standard) reserved few more keywords.

C99

  • _Bool
  • _Complex
  • _Imaginary
  • inline
  • restrict

C11

  • _Alignas
  • _Alignof
  • _Atomic
  • _Generic
  • _Noreturn
  • _Static_assert