function which is returning float data type

float find();
void main(){
    float num;
    num=find();
    clrscr();
    printf("%f",num);
    getch();
}
float find(){
    float f=.005f;
    f=(double)f;
    return f;
}
Output: 0.005000

No comments: