C Programming Reference >> C Basic Tutorials >> C Keywords Home >> doubleui 30/12/06 - Views - Ratings : 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);
}
|