谁能说说这句话的意思 int (*fun(int))(int) ?
来源:百度知道 编辑:UC知道 时间:2024/05/30 21:43:04
rt
int (*fun(int))(int);
函数名字
fun
函数的参数
int
函数的返回值
int (*)(int) //这是函数指针
-----------------------------------------------
一般会这样声明,读起来方便:
typedef int (*FUN)(int);
FUN fun(int);
显然缺少点函数名吖
真是的
表示返回值为int类型,指向函数的函数指针指向的函数指针