#include<stdio.h>
void fun(void *x)
{
//what is the data type of 'x', since I could have passed float instead of
// int so first I have to check datatype of this and then proceed further.
}
int main()
{
int n=10;
fun(&n);
}
您可以看到我们不知道函数 fun() 中“x”的类型,那么我们如何在不使用(传递)函数参数中的任何其他信息的情况下找出它?