fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. unsigned long long n1 = 987654321234567890ull;
  6. unsigned long long n2 = n1 + 100ull;
  7.  
  8. float f1 = n1;
  9. float f2 = n2;
  10.  
  11. printf("longs are equal: %d\n", n1 == n2);
  12. printf("floats are equal: %d\n", f1 == f2);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
longs are equal: 0
floats are equal: 1