fork download
  1. bool foo ();
  2. bool bar ();
  3.  
  4. int main () {
  5. foo() or bar(); // <--- line
  6. foo() or bar(); // <--- line
  7. }
  8.  
  9. #include<iostream>
  10.  
  11. bool foo () {
  12. static int i = 0;
  13. std::cout << "foo()\n";
  14. return i++;
  15. }
  16.  
  17. bool bar () {
  18. std::cout << "bar()\n";
  19. return true;
  20. }
  21.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
foo()
bar()
foo()