Every language has some basic elements and grammatical rules. One should be aware of the basic elements of any language before using the language. The basic elements are character set, variables, datatypes, constants, keywords (reserved words), variable declaration, expression, statements, etc.
C Character Set
The characters that are used in C program are as under:
UpperCase and LowerCase Letters
- A, B, C, ………………Z
- a,b,c,………………….z
Digits
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Graphic Characters
Character | Name | Character | Name |
---|---|---|---|
+ | plus sign | – | minus sign (hyphen) |
* | asterisk | % | percent sign |
\ | backward slash | / | forward slash |
< | less than sign | = | equal to sign |
> | greater than sign | _ | underscore |
( | left parenthesis | ||
{ | left braces | ||
[ | left bracket | ||
, | comma | ||
‘ | single quotes | ||
: | colon | ||
? | question mark | ||
& | ampersand | ||
~ | tilde sign | ||
# | hash |