如何理解C++中的复杂语句

找到最靠近内部的标识符,从该标识符开始依据从内到外,从右到左的顺序读

void (*f)(int,void (*)())

 

 f is a pointer,point to a function,function has two parameters and ruturn void, int and void (*)(),void (*)() is a pointer to a void function

标准答案:declare f as pointer to function (int, pointer to function returning void) returning void

posted @ 2022-03-24 22:48  naive_sim  阅读(27)  评论(0编辑  收藏  举报