fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n=57;
  6. int even=n&(0xAAAAAAAA);
  7. int odd=n&(0X55555555);
  8. cout<<even <<" "<<odd;
  9. return 0;
  10. }
Success #stdin #stdout 0s 4588KB
stdin
Standard input is empty
stdout
40 17