fork download
  1. #include <iostream>
  2.  
  3. void say_hello()
  4. {
  5. std::cout<<"Hello!"<<std::endl;
  6. }
  7.  
  8. int main()
  9. {
  10. void(*f)() = &say_hello;
  11. f();
  12. return 0;
  13. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
Hello!