For Example. I have this function -> Sort(void * param)
in which there is a generic parameter. I need to understand what is the type of the parameter passed cause the sorting of an Int is different from a char. So I need a similar situation :
Sort(void *param){
if(param is int)
//some code
else if(param is char)
//some code
else if //ecc
}
I don't know how to write the code inside if statements.