fork download
  1. #include <iostream>
  2.  
  3. void foo(int i)
  4. {
  5. if (i == 0) {
  6. foo(1);
  7. }
  8. std::cout << "foo(" << i << ")" << std::endl;
  9. }
  10.  
  11. int main(int argc, const char* argv[])
  12. {
  13. foo(0);
  14. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
foo(1)
foo(0)