面试 遇到 问题

函数指针数组  写法

// 声明一个函数类型 并 用 typedef 把这个类型 命名为 init_fnc_t
typedef int (init_fnc_t) (void);  
// 用 类型  init_fnc_t 定义一个 指针数组 ,  指向  init_fnc_t 类型
init_fnc_t *init_sequence[5];

猜你喜欢

转载自www.cnblogs.com/suozhang/p/12807330.html