fork download
  1. #include<iostream>
  2. using namespace std;
  3. int abc();
  4.  
  5. int main(){
  6. int (*foo[10])();
  7. *(foo+1)=&abc;
  8. foo[1]();
  9. return 0;
  10. }
  11. int abc(){
  12. cout<<"test"<<endl;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
test