Solved

recursion

Posted on 1997-05-05
1
158 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tstream to hex 1 1,780
How to capture screen window of a process 4 420
"Color-coding" the characters in an edit box? 12 204
delphi prevent click fast 2 283
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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