C – Character 2017-08-05T14:14:02+00:00

Character Datatype :

Character data type  is a special integer type designed for storing single characters. The integer value of a char corresponds to an ASCII character. E.g., a value of 65 corresponds to the letter A, 66 corresponds to B, 67 to C, and so on.

As in the table below, unsigned char permits values from 0 to 255, and signed char permits values from -127 (or -128) to 127. The char type is signed by default on some computers, but unsigned on others the sizes of the char types are as follows.

Type                         Bytes                Minimal range

char                                1                    -127 to 127

unsigned char              1                     0 to 255

signed char                   1                   -127 to 127


Output :

Value of a = E

Prev Next