The C programming language offers various data types to suit different purposes. They can be broadly categorized as follows
2 Types of Basic data types
- Derived data types
- User defined data types
Basic data types
The C programming language provides the user with four basic data types.
4 Basic data types | |
Data type | Description |
int | An integer. |
float | A floating point(real) number. |
char | A single of byte of memory, enough to hold a charecter. |
double | A double precision floating point number. |
Data type qualifiers
The C programming language provides the user with three basic datatype qualifiers.
Data type qualifiers | |
type qualifier | Description |
Short | An integer possiably of reduced range. |
Long | An integer possiably of incrased range. |
Unsigned | An integer with no negetive range, the spare capacity being used to increase the positive range |