array of N pointers to functions returning pointers to functions

后端 未结 6 1641
时光说笑
时光说笑 2021-02-02 14:57

This was asked to me in an interview! i really got confused

  • How do I declare an array of N pointers to functions returning pointers to functions returning pointers
6条回答
  •  灰色年华
    2021-02-02 15:33

    typedef char* (* tCharRetFunc)();
    typedef tCharRetFunc (* tFuncRetCharFunc)();
    
    tFuncRetCharFunc arr[N];
    

提交回复
热议问题