fork(2) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. const char *str = "9223372036854775807";
  6. double d;
  7. double e;
  8. sscanf(str, "%lf", &d);
  9. e = atof(str);
  10. printf("%f\n", d);
  11. printf("%f\n", e);
  12. }
Runtime error #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
9223372036854775808.000000
9223372036854775808.000000