Call function with a variable number of parameters

[Deleted]

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.....){

}
[Deleted]

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


Thank you.