c C 回调函数原理举个简单的小程序例子?

C 回调函数原理举个简单的小程序例子?回调函数是通过函数指针include<stdio实现的。H>#包括<windows。H>typedef void(*funut)(void)vo

C 回调函数原理举个简单的小程序例子?

回调函数是通过函数指针include<stdio实现的。H>#包括<windows。H>typedef void(*funut)(void)void test(fun fun,unsigned int t)void handle(){ printf(“你好!n“”}int main(){ test(handle,5) 返回0}void test(Fun Fun,unsigned int t){ 同时(t--) { Sleep(1000) } fun()}