Character Data Types in C Language

Data type Definition

The data type supported in a language dictates the type of values which can be processed by the language.

C supports several different types of data, each of which may be represented differently within the computers memory.

Data types are means to identify the type of data and associated operations for handling it. Every variable in C has a data types.

C Character Data type

Char is a data type which is used to represent individual characters. The char type will generally require one byte of memory. A char data type may have the identifiers signed and unsigned.

Character types are used to store characters value. Character data type allows a variable to store only one character.

Size and range of Integer type on 16-bit machine are given below:

Type Size(bytes) Range
char or signed char 1 -128 to 127
unsigned char 1 0 to 255


Read Also: