fork download
  1. #define ATCI_char_a 'a'
  2. #define ATCI_char_z 'z'
  3.  
  4. #define ATCI_IS_LOWER( alpha_char ) ( ( (alpha_char >= ATCI_char_a) && (alpha_char <= ATCI_char_z) ) ? 1 : 0 )
  5.  
  6. #include <iostream>
  7.  
  8. int main() {
  9. std::cout << "b: " << ATCI_IS_LOWER('b') << '\n'
  10. << "B: " << ATCI_IS_LOWER('B') << '\n'
  11. << "Crazy: " << ATCI_IS_LOWER(true || -1) << '\n';
  12. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
b: 1
B: 0
Crazy: 1