Data types in C
0 3893
Data types can be defined as the set of data types having different storage capacities. The various data types in C can handle data used in programs.
The Data Types in C can be classified into 4 types.
They are the following:
1 Basic Data Type
2 Derived Data Type
3 Enumeration Data Type
4 Void Data Type
Let us discuss the data type, memory and its range. See the table below for easy learning:
Data Types | Memory (Bytes) |
Short int | 2 |
Unsigned short int | 2 |
Unsigned int | 4 |
Int | 4 |
Long int | 4 |
Unsigned long int | 4 |
Long long int | 8 |
Unsigned long long int | 8 |
Signed char | 1 |
Unsigned char | 1 |
Float | 4 |
Double | 8 |
Long double | 12 |
Share:
Comments
Waiting for your comments