to get accurate result either numerator or denominator or both must be floating type.
why this statement doesn't give the accurate result?
the output is 4.000Code:float f; f= 21/5; printf("%f",f);
what happens if we make changes so?
output 4.200Code:float f; f= 21.0/5; printf("%f",f);
please give me the reason