void funcPtr(int a);
int main(){
int k=1;
void (*funcPtr2)(int);
funcPtr2 = (void*)(funcPtr);
// funcPtr2 = (void(*)(int))(funcPtr);
(*funcPtr2)(k);
return 0;
}
void funcPtr(int a){
printf("%d", a);
}
What is the difference between (void*)
and (void(*)(argument type)
in function pointer type casting?
As a result, it does not occur warning.
Is this wrong? about (void*)
type casting