How can I call a function using a function pointer?

前端 未结 16 1626
孤独总比滥情好
孤独总比滥情好 2020-12-02 17:24

Suppose I have these three functions:

bool A();
bool B();
bool C();

How do I call one of these functions conditionally using a function poi

16条回答
  •  眼角桃花
    2020-12-02 17:42

    If you need help with complex definitions, like

    double (*(*pf)())[3][4];
    

    take a look at my right-left rule here.

提交回复
热议问题