Solved

recursion

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Today’s effective marketing is about coming down to the customers’ level and engaging in a whole new way. A text message is one of the most effective and influential ways that you can engage your customers. Here are eight ways that you can utilize t…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

690 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