AdrianBrewer6677 AdrianBrewer6677
  • 21-12-2020
  • Computers and Technology
contestada

In recursive methods, if a temporary variable is used to store intermediate results, how many copies of that variable will exist from the first call to the last one when the recursion finishes?

Respuesta :

doulatrajput786 doulatrajput786
  • 22-12-2020

Answer:

In recursive methods, if a temporary variable is used to store intermediate results, then number of copies it will make is equal to recursive calls made during recursions

Explanation:

If a temporary variable is used to store intermediate result than  it make a new copy every time when the recursive method calls itself until the last recursive call. So for that recursive methods are not storage efficient because they  push and pop results of each call on memory.

Answer Link

Otras preguntas

how many outcomes have exactly 1 head?
Joshua goes to a local farmers market and see sinuses apples $9.80 per 10 pound bag which is a unit rate of the price per pound
Why salt was so valuable to west Africans
Write 2% as a fraction in simplest form.
Giving brainliest to correct answers
A chemical measured the amount of barium sulfide produced during an experiment she finds that 823g of barium sulfide is produced calculate the number of moles o
Choose a good you are familiar with, and analyze its economic utility, using the questions below. NOTE: Choose a good for this exercise, not a service. a. What
can someone help me it due today!!
Deshaun deposits 500 into an account with an interest rate of 5 percent how much intrest sill he be paid in 4 years?
The debating team has won the trophy again. past perfect present perfect past present future perfect future