fork download
  1. #include <cstdio>
  2.  
  3. typedef void (*FuncType)();
  4.  
  5. static void Print() { std::printf("%s", "Hello, World!\n"); }
  6.  
  7. int main() {
  8. FuncType const ft = &Print;
  9. ft();
  10. (*ft)();
  11. (**ft)();
  12. /* ... */
  13. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
Hello, World!
Hello, World!
Hello, World!