c float meaning code example
Example 1: c declare float
float variable;
Example 2: float in c++
float contains less storage than a double.
float p = 25.0;
double p = 25.0;
Example 3: what is float in c
float: It is used to store decimal numbers (numbers with floating point value) with single precision. double: It is used to store decimal numbers (numbers with floating point value) with double precision.