回复 2楼 rjsp
taskchange(fp,task_0(33));在VC下运行过的
task_0函数被解释为函数指针 我想能不能连参数一起传递过去 在VC试了一次 还可以
![](images/smilies/emot/em09.gif)
这样写可以用就先这样呗 等理解了 就好说了
extern void (*get_hello_world_function(void))(void); int main(void) { get_hello_world_function()(); return 0; }
#include <stdio.h> static void hello_world(void) { printf("Hello, world!\n"); } extern void (*get_hello_world_function(void))(void) { return hello_world; }