fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. #define ALERT1_CHECK (0b0001)
  5. #define ALERT2_CHECK (0b0010)
  6. #define ALERT3_CHECK (0b0100)
  7. #define ALERT4_CHECK (0b1000)
  8.  
  9. int main(void) {
  10. uint8_t ret = 0;
  11.  
  12. ret |= ALERT1_CHECK;
  13. ret |= ALERT2_CHECK;
  14. ret |= ALERT3_CHECK;
  15. ret |= ALERT4_CHECK;
  16.  
  17. printf("%x\n", ret);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
f