Call function with a variable number of parameters

 

Is it possible to define a function that you can call with any number of parameters? If so, how?

Thank you.

 

it is possible if the type of variables is known.

void function(int par1=0,int par2=0,int par3=0,int par4=0.....){

}
 

Ah, cool. Might code it like that for up to 16 params.


Thank you.

Reason: