I have function sum( data) and I need to call this function inside multi functions and in each time pass to sum(data) different type of data. I do not know how to define the parameter of the function sum(data) to accept different types. For example:
void sum( "what is the type here" data){
// some processing
}
void x(){
// some processing
//float data
sum(data);
}
void y(){
// some processing
//int data
sum(data);
}
void z(){
// some processing
//double data
sum(data);
}