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