fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef void(functionPtr)(int);
  5.  
  6. void function(int a){
  7. std::cout << a << std::endl;
  8. }
  9.  
  10. int main() {
  11.  
  12. functionPtr fun;
  13. function(5);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
5