titanandrews
Programmer
Hi,
If I have a function prototype like this:
Is it possible to call the function and pass only the first and last parameters, and let the middle one default?
My books do not mention this scenario at all. They only mention this:
thanks,
Barry
If I have a function prototype like this:
Code:
int doIt(int value1, int value2 = 0, int value3 = 0);
Is it possible to call the function and pass only the first and last parameters, and let the middle one default?
My books do not mention this scenario at all. They only mention this:
Code:
doIt(1);
doIt(1,2,3);
thanks,
Barry