fork download
  1. #include <stdio.h>
  2.  
  3. typedef void FooFunc();
  4.  
  5. FooFunc Foo;
  6. void Foo() { puts("Sup!"); }
  7.  
  8. int main()
  9. {
  10. FooFunc* ptr = &Foo;
  11. FooFunc& ref = Foo;
  12.  
  13. ptr();
  14. ref();
  15. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Sup!
Sup!