fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. int main(void) {
  5. float x = 0.1;
  6. uint8_t y = 0x100;
  7. int8_t z = 0x80;
  8.  
  9. if (x == 0.1)
  10. {
  11. printf("x == 0.1d\n");
  12. }
  13. else
  14. {
  15. printf("x != 0.1d\n");
  16. }
  17.  
  18. if (y == 0x100)
  19. {
  20. printf("y == 0x100UL\n");
  21. }
  22. else
  23. {
  24. printf("y != 0x100UL\n");
  25. }
  26.  
  27. if (y < 0x80)
  28. {
  29. printf("y < 0x80UL\n");
  30. }
  31.  
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
x != 0.1d
y != 0x100UL
y < 0x80UL