how do u make a function which takes diff data type as parameter, depending the data type variable pointed..i have understood that the basic function prototype should be like this
suppose i haveCode:void functionname(void *pnum) { //do something depending upto datatype
Code:float fa; int ib; functionname(&fa); functionname(&ib);
this much i have understood...now how do i make the function do according to the datatype???
i searched the forum and i got that type casting is required? how ??
thanks