?
Solved

recursion

Posted on 1997-05-05
1
Medium Priority
?
160 Views
Last Modified: 2010-04-16
when i have a recursive function call, what is the mechanism within memory wherein the accumulated values are stored & totaled. in other words, in a for or while type loop, i would explicitly create & increment some sort of an accumulator variable.i can then set up a watch for this variable in a debugger. in a recursive call how do i trace these values as they are modified? it seems that when i try to imagine the results of a recursive call, i am often off by one itteration, so i would like a closer way to examine this mechanism within memory, to help me uinderstand it.
0
Comment
Question by:frenomulax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
alona041797 earned 100 total points
ID: 1215331
The values are stored in memory as an internal STACK. To view values passed as parameters you could use the "Call Stack" (under window menu). Other variables are usually out of scope and could be viewed only by looking directly at the memory.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question