Writing a function pointer in c

后端 未结 3 2061
梦谈多话
梦谈多话 2021-01-18 18:25

I was recently reading a code, and found that a function pointer is written as :

int (*fn_pointer ( this_args ))( this_args )

I usually enc

3条回答
  •  半阙折子戏
    2021-01-18 18:51

    This

    int (*fn_pointer ( this_args1 ))( this_args2 )
    

    declares a function that takes as arguments this_args1 and returns a function pointer of type

    int (*fn_pointer)(this_args2)
    

    so it's just a function that returns a function pointer.

提交回复
热议问题