fork(2) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. bool A = true;
  6. bool B = false;
  7. bool C = false;
  8. std::cout << std::boolalpha;
  9. std::cout << (!A && B) << std::endl;
  10. std::cout << (A || ! B) << std::endl;
  11. std::cout << (A && B || C) << std::endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
false
true
false