fork(2) download
  1. #include <stdio.h>
  2.  
  3. void** func_1( void**(**arg_pp_array[])(void**(**arg_pp)()) ) {
  4. printf("called: func_1\n");
  5. return NULL;
  6. }
  7.  
  8. void** func_2( void**(**arg_pp_array[])(void**(**arg_pp)()) ) {
  9. printf("called: func_2\n");
  10. return NULL;
  11. }
  12.  
  13. int main() {
  14.  
  15. void** (*p_func_1)(void**(**[])(void**(**)())) = &func_1;
  16. void** (*p_func_2)(void**(**[])(void**(**)())) = &func_2;
  17.  
  18. void** (**pp_array[])(void**(**[])(void**(**)())) = {
  19. &p_func_1, &p_func_2,
  20. };
  21. void** (**((*pp_array_p)[])) (void**(**[])(void**(**)())) = {
  22. &pp_array,
  23. };
  24. void** (**((**pp_array_pp)[])) (void**(**[])(void**(**)())) = {
  25. &pp_array_p,
  26. };
  27. (**(**pp_array_pp)[0])( NULL );
  28. (**(**pp_array_pp)[1])( NULL );
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
called: func_1
called: func_2