fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define bitwise_and &
  5. #define logical_and &&
  6.  
  7. int main() {
  8. cout << int(0x1 bitwise_and 0x10) << endl;
  9. cout << int(0x1 logical_and 0x10) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0
1