fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3.  
  4. void f1(void (*f)(int));
  5. void f2(void (&f)(int));
  6. void f3(void ( f)(int));
  7.  
  8. int main()
  9. {
  10. std::cout
  11. << typeid(f1).name() << std::endl
  12. << typeid(f2).name() << std::endl
  13. << typeid(f3).name() << std::endl;
  14. }
  15.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
FvPFviEE
FvRFviEE
FvPFviEE