Double type variable is as like float type variable.8 byte memory will be allowed for double type variable.The highest value for double type variable is 1.7*10^+308 and the lowest value is 1.7*10^-308.
Watch The Program Carefully :
#include<stdio.h>
#include<conio.h>
main()
{
double dl;
clrscr();
dl=123.12;
printf("Value of dl is %e",dl);
dl=1234.12;
printf("\n Value of dl is %e",dl);
getch();
}
OUTPUT :
Value of dl is 1.231200e+02
Value of dl is 1.234120e+03
Post a Comment