fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int xnor(int a, int b) {
  5. return (a & b) | (~a & ~b);
  6. }
  7.  
  8. int main() {
  9. cout << xnor(5, 7) << endl << ~(5 ^ 7);
  10. return 0;
  11. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
-3
-3