C Character Set and Encoding
On this page (5sections)
Types Of Character Set
- Letters
- Digits
- Special Characters
Letters :
- C language comprises the following set of letters to form a standard program. They are:
- A to Z in Capital letters.
- a to z in Small letters.
- In C programming, small latter and caps latter are distinct.
Digits :
- C language comprises the following sequence of numbers to associate the letters. 0 to 9 digits.
Special Characters:
C language contains the following special character in association with the letters and digits.
| Symbol | Meaning |
| ~ | Tilde |
| ! | Exclamation mark |
| # | Number sign |
| $ | Dollar sign |
| % | Percent sign |
| ^ | Caret |
| & | Ampersand |
| * | Asterisk |
| ( | Lest parenthesis |
| ) | Right parenthesis |
| _ | Underscore |
| + | Plus sign |
| | | Vertical bar |
| \ | Backslash |
| ` | Apostrophe |
| - | Minus sign |
| = | Equal to sign |
| { | Left brace |
| } | Right brace |
| [ | Left bracket |
| ] | Right bracket |
| : | Colon |
| " | Quotation mark |
| ; | Semicolon |
| < | Opening angle bracket |
| > | Closing angle bracket |
| ? | Question mark |
| , | Comma |
| . | Period |
| / | Slash |
Continue learning with these related tutorials and programs:
- C Tutorials — Browse all C Tutorials.
- C Introduction — Start here — what C is and why it matters.
- C History — More in c basics.
- C Specific Properties and Implementation — More in c basics.
Frequently Asked Questions
What does this C program do?
It is a C example program that demonstrates C Character Set and Encoding, including the complete source code and the expected sample output.
How do I compile and run this C program?
Save the code in a `.c` file, compile it with `gcc filename.c -o program`, then run it with `./program` (or `program.exe` on Windows).
What concepts does this example use?
This example uses core C syntax, illustrating a common pattern in C programming.