C Character Set

 Every language  has some basic element and grammatical rules. Before programming in C, it is must to know the basic elements of the language. These basic elements are character set, variables, datatypes, constants, keywords (reserve word), variable declaration, expression statement etc. All of these are used to construct a C program.

C Character set 

The characters that are used in C programs are given below.

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

*

Asterisk

%

Percentage sign

\

Backward slash

/

Forward slash

< 

Less than

=

Equal to sign

> 

Greater than sign

_

Underscore

(

Left parenthesis

)

Right parenthesis

{

Left braces

}

Right braces

[

Left bracket

]

Right bracket

,

Comma

.

Period

Single quotes

Double quotes

:

Colon

;

Semicolon

?

Question mark

!

Exclamation sign

&

Ampersand

|

Vertical bar

~

Tilde sign

^

Caret sign

#

Hash

 

 


Whitespace characters
Space character, newline character, horizontal tab, vertical tab, and form feed.

Other characters
Alter, backspace, carriage return and null character.

Comments

Popular posts from this blog

18 Amazing programs in C.