Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 552465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:30:10+00:00 2026-05-13T11:30:10+00:00

Forgive me if this is a silly question but I’m afraid that I don’t

  • 0

Forgive me if this is a silly question but I’m afraid that I don’t know what ‘the stack’ is.

I know what ‘a stack’ is and I’ve learned the FILO/FIFO acronyms. But when people say things like ‘a value type is allocated on the stack, not the heap’ – I’m afraid I don’t really know what that means.

When I introduce a logic error into a recursive function – I’m unable to allocate any more memory to ‘the stack’ and my app crashes….but I don’t really get what it is.

I tried to Google for an answer but only found info on ‘a stack’ and how to use one.

When I run a .Net App – does it create a single ‘stack instance’ to act as ‘The Stack’? I’ve seen Stack traces that show me the execution levels of the code – most often when I encounter an unhanded exception…but all I remember being able to see is the methods and the order they were called…wouldn’t the stack also have all the variables in scope for each step of the stack.

Maybe I’m just being silly – but I think I could imagine a situation with a recursive function where it would be handy to see the previous value of a variable – from ‘the stack’ but not have a need to pass it in.

Dunno if that makes any sense – it’s awfully late. But I would really appreciate any information anyone has.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:30:10+00:00Added an answer on May 13, 2026 at 11:30 am

    That term refers to the call stack. You might learn more about the concepts in a low level programming or computer architecture/organization course, were you to take one.

    Whenever a function is called, the return address (where it’s being called from), as well as parameters for the function, are pushed onto “the stack” (a stack in memory, but no, not a C# Stack data structure that you’d read about on MSDN). When a function terminates, the address is popped from the stack and control resumes where it was originally (at the popped address). The bunde of information pertaining to a function call (local variables, return address, parameters, etc) is called a “stack frame”.

    So, when you use recursion (and it gets caught in an infinite recursive loop), you literally just fill the stack up with return addresses (and other data) until there is no space left.

    Edit – You mentioned the heap also. This is where data structures are stored (dynamic memory allocation, through the new keyword in most languages these days, or malloc in C). In C/C++, for instance, data on the heap is there until it is explicitly freed. This is to be contrasted with local/automatic variables which are stored on the stack (and are therefore destroyed when their scope terminates… they are popped off the stack out of existence).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Forgive me for this noob question, but is there such a setting that sets
Forgive me if this is a silly question! But to run trinidad as a
Forgive me if this is a silly question....but I think back to my Comp.
Forgive if this question is silly. I just started reading the SugarCRM developer documentation
Forgive me if this is a dumb beginners problem, but I really don't get
Forgive me if this is a tried question, but I'm having a little difficulty
Forgive me for this seemingly obvious question, but my searches have not revealed the
I'm pretty new to databases, so forgive me if this is a silly question.
Forgive me if this question is too silly. I am making a webpage on
Please forgive this rather basic question, but I'm very new to Java and still

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.