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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:19:49+00:00 2026-06-18T07:19:49+00:00

I was studying about recursion and I came across this question: FORTRAN implementations do

  • 0

I was studying about recursion and I came across this question:

FORTRAN implementations do not permit recursion because

a. they use static allocation for variables

b. they use dynamic allocation for variables

c. stacks are not available on all machines

d. it is not possible to implement recursion on all machines.

I found out that the answer was (a)

But I want to know all the features that a programming language should have to support the recursion.

Can somebody please solve my doubt

Thanks in advance

  • 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-06-18T07:19:50+00:00Added an answer on June 18, 2026 at 7:19 am

    Local variables in a function or subroutine (including its return address) should be a fresh copy whenever it is called.

    Usually this is done using a stack architecture. Whenever a function is called, its arguments are pushed on the stack, then its return address is pushed, then a block of memory is also “pushed” (by decrementing the stack pointer by a sufficient amount).
    A special register, the “frame pointer” is set pointing to that memory, and the function refers to all its local variables by reference to that register.

    Other languages do not use a physical hardware stack, but a logical one implemented as a linked list, but the principle is the same.

    Since the original Fortrans did not have this concept, and stored all variables at fixed global locations, a recursive call would crash or hang. For example, if A calls B calls C calls B, then B returns to C, which returns to B, which returns to C, ad infinitum, because B can only remember one return address.

    calls:  A -> B -> C -> B
    
    returns:     B <- C <- B
                 B -> C
    

    What’s more, all the local variables and arguments of the first call to B are clobbered when the second call to B occurs.

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

Sidebar

Related Questions

I was studying about redundancy bits and I came across this equation and table.
I was studying about browser performance when loading static files and this doubt has
I have started studying about C++0x. I came across the follow expression somewhere: int
I am studying about various trees, and came across AVL trees and splay trees.
I am currently studying recursion in school, and I have trouble thinking about methods
I'm studying UML and I've been reading about use cases. All of the examples
I'm studying about the new Process Manager that came automatically with MPICH2, but until
I'm studying c programming in linux,and I wrote this to output information about the
I've been studying about k-means clustering , and one thing that's not clear is
I am studying about IBM DB2 and I got a question about access Type.

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.