C Programming Reference >> C Basic Tutorials >> C Keywords Home >> floatui 30/12/06 - Views - Ratings : This is used to declare a real\Decimal data type. Float data type is of 4 bytes and is used to store a floating point numbers of low accuracy or precision. Code - void function (void)
{
float a = 20.007;
float b;
b = scanf ("%f", &b);
printf ("%f %f",a, b);
}
|