C Programming Reference


C Programming Reference >> C Basic Tutorials >> C Keywords Home >>

doubleui

30/12/06 -  Views - Ratings :   3.48 of 5 / 155 Votes

This is used to declare a real\Decimal data type. Double data type is of 8 bytes and is used to store a floating point numbers of very high accuracy.

Code -
void function (void)
{
double a = 20.007;
double b;
b = scanf ("%lf", &b);
printf ("%lf %lf",a, b);
}

Back To Top


      

 

 

© 2006 cencyclopedia.com