fork(23) download
  1. #include <iostream>
  2. using namespace std;
  3. void f(int a) { cout << "f() called:" << a << endl; }
  4.  
  5. int main()
  6. {
  7. using Function_t = void(int);
  8.  
  9. Function_t* ptr = f;
  10. ptr(42);
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
f() called:42