default value for parameters in gcc
Posted: Sat Jul 12, 2003 3:02 pm
Is there a way to give default values to parameters of a function in gcc (in djgpp)?
void fnc(int a, int b=0); <<--??
fnc(10); = fnc(10, 0);
fnc(20, 15);
void fnc(int a, int b=0); <<--??
fnc(10); = fnc(10, 0);
fnc(20, 15);