Solved

recursion

Posted on 1997-05-05
1
154 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
1 Comment
 
LVL 2

Accepted Solution

by:
alona041797 earned 50 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Pascal code for reading registry 1 348
websites monitor c++ or delphi 9 441
Neural Networks with Delphi 3 1,488
Delphi Skype API 2 1,727
A safe way to clean winsxs folder from your windows server 2008 R2 editions
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now