View Single Post
  #4 (permalink)  
Old July 29th, 2003, 11:12 PM
Ankur_Verma Ankur_Verma is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

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
Reply With Quote