有人可以解释这个 C 语句的组成部分吗?
Can someone explain the components of this C statement?
我现在正在尝试学习 C 编程,但我有点偶然发现了声明函数指针数组的概念。声明就在这里:
int (*menu_option[10])(char *title);
这里到底发生了什么?
来自 spiral rule 此处
menu_option
是 10 的数组
- 函数指针
- 他们将
char*
作为参数并且 return 一个 int
使用 https://cdecl.org/ 将 C 乱码解析为英语
我现在正在尝试学习 C 编程,但我有点偶然发现了声明函数指针数组的概念。声明就在这里:
int (*menu_option[10])(char *title);
这里到底发生了什么?
来自 spiral rule 此处
menu_option
是 10 的数组
- 函数指针
- 他们将
char*
作为参数并且 return 一个int
使用 https://cdecl.org/ 将 C 乱码解析为英语