Character set in C

Character Set: What is a character set?

  • A character set is the mapping of characters to binary values.
  • In 8 bit character sets, the values range from 0255
  • and one character will be mapped to each of
  • these values.
  • This means that if the users terminal is set to support a particular character set; every time he
  • press a certain key or a combination of keys a corresponding character will be invoked.

ASCII Character Set

C Character Set

  • These are the characters that C recognizes.
  • Letters (upper case and lower case)
    • A B C D E … and so on.
    • a b c d e … and so on.
  • Digits
    • 0 1 2 3 … and so on.
  • Special Characters (punctuation etc), space (also known as blank)
    • ′ ″ ( ) * + / : = ! & $ ; <> % ? , . ˆ # @ ˜ ‘ { } [ ] \ |

C : Character set in C Program List