C Programming

⌘K
  1. Home
  2. Docs
  3. C Programming
  4. Basic Elements of C
  5. C Standards and C Character Set

C Standards and C Character Set

C standards are formal specifications that define the syntax, semantics, and library functions of the C programming language to ensure portability and consistency across different compilers and systems.

Thank you for reading this post, don't forget to subscribe!
  • Since its development in 1972, the C language has undergone several standardizations to improve its features, fix inconsistencies, and maintain compatibility.
  • These standards are established by organizations like ANSI (American National Standards Institute) and ISO (International Organization for Standardization).
  • Each standard version introduces new features and updates.
image 22

The C character set refers to the collection of valid characters that can be used in writing C programs, including letters, digits, special symbols, and whitespace characters.

    • These characters form the basic building blocks of C programs.
    • They are used to form constants, variables, operators, and other elements of the program.
    • The character set is typically based on the ASCII standard.

    C Character Set Categories:

    a.) Letters (Alphabets):

    • Uppercase: A–Z
    • Lowercase: a–z
    • Used for naming variables, functions, etc.

    b.) Digits:

    • 0–9
    • Used in numeric constants and identifiers.

    c.) Special Characters:

    • Symbols like + – * / % ; , {} [] () # & ^ ~ ! = < > etc.
    • Used in expressions, control statements, and syntax.

    d.) Whitespace Characters:

    • Space ( ), tab (\t), newline (\n)
    • Used to separate tokens and format code for readability.

    How can we help?