7-Data Types in C_ Derived and Modifiers
7-Data Types in C_ Derived and Modifiers
Primary data types are also known as the fundamental data types because they are pre-defined or they already exist in the C language. All the
other types of data types (derived and user-defined data types) are derived from these data types. Primary data types in C are of 4 types: int,
char, float, and double. In this section, we are going to discuss all these data types in detail.
The following table represents the memory consumed or size of each primary data types in C:
DATA FORMAT
MEMORY (bytes) RANGE
TYPE SPECIFIER
-231 to 231 -
int 4 %d
1
1.2E-38 to
float 4 %f
3.4E+38
2.3E-308 to
double 8 %lf
1.7E+308