fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f() {
  5. return 0;
  6. }
  7.  
  8. double g( int(*a)() ) {
  9. return (double)a();
  10. }
  11.  
  12. double(*h(double d))( int(*)() ) {
  13. return g;
  14. }
  15.  
  16. int main() {
  17. f();
  18. g(f);
  19. h(3.0);
  20.  
  21. double( * ( * t[3] )( double ) )( int(*)() );
  22. t[0]=h;
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty