fork(1) download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <limits.h>
  4.  
  5.  
  6. int main()
  7. {
  8. int a = INT_MAX;
  9. float b = a;
  10.  
  11. printf("%d %f\n", a, b);
  12.  
  13. a = b;
  14. printf("%d %f\n", a, b);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
2147483647 2147483648.000000
-2147483648 2147483648.000000