fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void foo()
  6. {
  7. cout << "hello world!" << endl;
  8. }
  9.  
  10. int main()
  11. {
  12. foo();
  13. (&foo)();
  14. (*foo)();
  15. (******************foo)();
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
hello world!
hello world!
hello world!
hello world!