声明:
"array of N pointers to functions, returning pointers to functions and returning pointer to integer"
谁能帮我理解上述语句的函数原型(prototype)?
给出的答案- int *(*(*a[N])()) ();
谁能解释一下我们是如何得出上述答案的?
最佳答案
*a[N]
是N个指针的数组,称它为x
*(x)()
返回函数指针,称它为y
int *(y) ()
是返回整数的函数指针
关于c++ - 理解c函数指针,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42872611/