fork(2) download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. void example1(void) {
  5. int x1 = -1;
  6. unsigned int x2 = 1;
  7. printf("example1: ");
  8. printf((x1 > x2) ? "x1 > x2\n" : "x1 <= x2\n");
  9. }
  10.  
  11. void example2(void) {
  12. int8_t x1 = -1;
  13. uint8_t x2 = 1;
  14. printf("example2: ");
  15. printf((x1 > x2) ? "x1 > x2\n" : "x1 <= x2\n");
  16. }
  17.  
  18. void example3(void) {
  19. int64_t x1 = -1;
  20. uint64_t x2 = 1;
  21. printf("example3: ");
  22. printf((x1 > x2) ? "x1 > x2\n" : "x1 <= x2\n");
  23. }
  24.  
  25. int main(void) {
  26. example1();
  27. example2();
  28. example3();
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 4508KB
stdin
Standard input is empty
stdout
example1: x1 > x2
example2: x1 <= x2
example3: x1 > x2