Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

function arguments()

Name: Anonymous 2010-04-24 9:47

Which do you prefer:


int foo(int a);
int foo(int a = someDefaultArgument);


or

int foo(int a);
int foo(void);

Name: Anonymous 2010-04-24 21:55

>>12
But then you're hardcoding that value, which nullifies the benefit of it being the default value. Hope it doesn't ever need to be changed later!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List