Hi 7stud
I appreciate your reviewing both the query and the
answer, I did call It 'initializing' in my answer,
thanks for pointing that out.
Providing default values is a good programming practice
itself, when you have 0s or NULLs or ""s assigned to the
parameters when no specific value has been provided for
them, it is always easier to use them in conditions etc.
as in that case, the user defining varibales, not
initializing them and passing them to the function call
just to match the signature of the call and in the
process provide junk values to the function- is one less
thing you have to worry about.
Again it all depends how you want your function to be
called.
Welcome to the group, its discerning people like you
who make ideas like this forum a success.
Ankur Verma
.Net and C++ Specialist
Wiley Tech Support
|