Themuppeteer
Programmer
Hello,
I think my teacher told me once in school that you can have a variable number of parameters in a function.
e.g.
result=add(1,5);
result=add(1,5,6);
result=add(1,5,6,9);
in 1 function. (not by using an array)
Anybody knows how to write this add function ?
Greetz,
NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
Don't eat yellow snow...and don't mess with your fstab!
I think my teacher told me once in school that you can have a variable number of parameters in a function.
e.g.
result=add(1,5);
result=add(1,5,6);
result=add(1,5,6,9);
in 1 function. (not by using an array)
Anybody knows how to write this add function ?
Greetz,
NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
Don't eat yellow snow...and don't mess with your fstab!