c工程某函数传递的参数意外变为二个,不想破坏队形(ps:写法上额为来一句定义)
#include <stdio.h>
void test(void *udata)
{
printf("%d %f", *(int *)((void **)udata)[0], *(double *)((void **)udata)[1]);
}
int main(int argc, char **argv)
{
int a = 1;
double b = 2;
test((void *[]){&a, &b});
}