fork download
  1. #include "stdio.h"
  2.  
  3. int main() {
  4. float a = 1.f / 3.f;
  5. double b = 1.f / a;
  6. double c = 1.0 / a;
  7.  
  8. printf("float reciprocal %.15f \n", a * b);
  9. printf("double reciprocal %.15f \n", a * c);
  10.  
  11. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
float reciprocal 1.000000029802322 
double reciprocal 1.000000000000000