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 6535967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:26:09+00:00 2026-05-25T10:26:09+00:00

Function calls are handled via a stack data structure. Is this enough for supporting

  • 0

Function calls are handled via a stack data structure. Is this enough for supporting recursion?

  • 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-25T10:26:10+00:00Added an answer on May 25, 2026 at 10:26 am

    Having the stack at all is the special treatment the compiler has to have when supporting recursion.

    In older programming languages like early versions of FORTRAN, the runtime environment did not have a function stack and each function had exactly one activation record reserved for it somewhere in memory. That meant that recursion wasn’t at all possible, because if you recursively called a function you would overwrite its one and only activation record, losing track of the context of how you arrived there.

    The introduction of the function stack is what first enabled recursion to be actually expressed in a programming language. Prior to that, programmers would use recursion as a tool for abstractly solving a problem, but would then have to translate that code into iterative logic due to the lack of a call stack.

    In order for a programming language to support recursion, it needs to have some mechanism for dynamically maintaining the call stack. This doesn’t have to be through an explicit stack; you could in theory dynamically-allocate all of the stack frames and chain them together as a linked list. This can be useful, for example, if you want to support coroutines or closures and actually need to hold on to old activation records after the function returns so that the data can be stored later.

    Hope this helps!

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

Sidebar

Related Questions

Basically it breaks down like this: A master template page is loaded when one
Before I begin, I would like to highlight the structure of what I am
I have written a DLL which exports a function that creates a window using
I am trying to simplify (via make_fn() ) the generation of functors that preprocess
I have a piece of Javascript that checks for a condition (via an AJAX
inHi, this question is fast, but from my point of view its pretty hard.
I'm curious as to what pattern the community uses to make AJAX calls in
I created a simple a jQuery function that is to be used for developer
I'm using PHP Streams to make HTTP calls with fopen(). I would like print
I am sorry if this has been asked already, but I have been looking

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.