fork download
  1. #include <iostream>
  2.  
  3. bool foo() {
  4. std::cout << "foo\n";
  5. return false;
  6. }
  7.  
  8. int main() {
  9. bool temp = foo() ? true : foo();
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
foo
foo