fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. template<class T> void foo(T o){cout<<o;}
  4.  
  5. void (*fptr)(int) = &foo;
  6. int main() {
  7. fptr(123);
  8. // your code goes here
  9. return 0;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
123