fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. double a = -0.0;
  6. double b = 0.0;
  7.  
  8. if ( a == b )
  9. {
  10. printf("-0.0 is equal to 0.0\n");
  11. }
  12. else
  13. {
  14. printf("-0.0 is not equal to 0.0\n");
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
-0.0 is equal to 0.0