The type or data type of a variable determines the set of values that a variable can take. The data type can be broadly classified as follows:
Classification of data types in C
| Data Type | Description |
|---|---|
| Primitive/Basic data type/Primary | int char float double |
| Derived data type | array function pointer |
| User-defined data type | structure union enumeration |
| Valueless | void |
C language provides standard set of data types which is also known as “primitive” types. Other complex data types can be built using theses basic types. C has five basic data types and they are as follows:
Primitive / Basic Data type
| Data type | Keyword |
|---|---|
| character | char |
| integer | int |
| floating point | float |
| double precision floating point | double |
| valueless | void |
