Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recursion

Status
Not open for further replies.

Sedai

Programmer
Mar 4, 2001
158
US
If I pass an argument by reference to a recursive function, and if the argument's value is changed at any level of the recursion, is this change going to be reflected at every level too?
Or when the recursion goes back to some previous level it will take the old value that the argument had at that level.
I'm sorry I didn't write this very nicely...

Thank you! Avendeval


 
thanks! i've just done some more 'extensive' testing and the value IS changed throughout the recursion. YAHOO!
(This is not an ad :))
Thank you!
Avendeval


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top