What is Double in C ?

What is Double in C ?


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 Variable Declaration and Variable Initialization:

Variable Declaration : To declare a variable , you must specify the data type & give the variable a unique name.

 double area ;  

Variable Initialization : To initialize a variable you must assign it a valid value.

area = 334343.14 ;

float Variable Declaration and Variable Initialization in two steps:

double area;
area = 334343.14;