小编use*_*891的帖子

C中这个奇怪的函数指针声明是什么意思?

任何人都可以解释一下int ((*foo(int)))(int)这是什么吗?

int (*fooptr)(int);
int ((*foo(int)))(int); // Can't understand what this does.

int main()
{
    fooptr = foo(0);
    fooptr(10);
}
Run Code Online (Sandbox Code Playgroud)

.

c function-pointers

14
推荐指数
4
解决办法
1571
查看次数

标签 统计

c ×1

function-pointers ×1