C Programming Reference


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

floatui

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

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);
}

Back To Top


      

 

 

© 2006 cencyclopedia.com