fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. double x = 0.0;
  5. double y = -0.0;
  6. printf("x = %lf\n", x);
  7. printf("y = %lf\n", y);
  8. printf(x == y ? "They're equal\n" : "They're not equal\n");
  9. return 0;
  10. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
x = 0.000000
y = -0.000000
They're equal