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.
Double data type is also same as float data type which allows up-to 10 digits after decimal. The range for double datatype is from 1E–37 to 1E+37.
Double data types is also used for real numbers.
Type | Size(bytes) | Range |
---|---|---|
Float | 4 | 3.4E-38 to 3.4E+38 |
double | 8 | 1.7E-308 to 1.7E+308 |
long double | 10 | 3.4E-4932 to 1.1E+4932 |