1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mariulka [41]
3 years ago
9

When should recursion be avoided?

Computers and Technology
1 answer:
Maru [420]3 years ago
7 0

Explanation: Recursion is the process in which the solution to any particular problem is based on the sub-part of the same problem/question. This is the method which is used in the situation when there is high complexity and calling of the function can be done by its own code in a particular program.

It makes the program code hard to handle and unreadable.The debugging process of the code also becomes difficult. The stack during the recursion process gets filled completely.These feature of the recursion makes it less efficient and thus, its avoided.

You might be interested in
In general, a presentation to kindergarteners should be less abstract than a presentation to corporate executives
Salsk061 [2.6K]
Make the presentation goofy so they will be more into it . your welcome
4 0
3 years ago
Read 2 more answers
Please explain this code line by line and how the values of each variable changes as you go down the code.
Scilla [17]

Answer:

hope this helps. I am also a learner like you. Please cross check my explanation.

Explanation:

#include

#include

using namespace std;

int main()

{

int a[ ] = {0, 0, 0};  //array declared initializing a0=0, a1=0, a3=0

int* p = &a[1]; //pointer p is initialized it will be holding the address of a1 which means when p will be called it will point to whatever is present at the address a1, right now it hold 0.

int* q = &a[0];  //pointer q is initialized it will be holding the address of a0 which means when q will be called it will point to whatever is present at the address a0, right now it hold 0.

q=p; // now q is also pointing towards what p is pointing both holds the same address that is &a[1]

*q=1 ; //&a[0] gets overwritten and now pointer q has integer 1......i am not sure abut this one

p = a; //p is now holding address of complete array a

*p=1; // a gets overwritten and now pointer q has integer 1......i am not sure abut this one  

int*& r = p; //not sure

int** s = &q; s is a double pointer means it has more capacity of storage than single pointer and is now holding address of q

r = *s + 1; //not sure

s= &r; //explained above

**s = 1; //explained above

return 0;

}

6 0
3 years ago
Given an existing class, BankAccount, containing: a constructor accepting a String corresponding to the name of the account hold
Dimas [21]

Answer:

Refer below.

Explanation:

Refer to the picture for the brief explanation of the code.

4 0
3 years ago
Creating calendar events prevents individuals from being able to schedule a time to collaborate.
Yuliya22 [10]

Answer:

False because calender events help a person remeber when s/he has a event happening that day!

6 0
3 years ago
There are many different ways to ensure search engine optimization. Select the three that are included in the list below. multip
Crazy boy [7]
Use key words( it narrows the Dutch down also that is what search Engines are looking for)
3 0
3 years ago
Other questions:
  • Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3
    7·1 answer
  • You learn that in a previous security breach at GearUp, a disgruntled employee destroyed the encryption key that had been used t
    7·1 answer
  • When creating wireframe geometry and the autocursor is on what happens when you push the shift key?
    13·1 answer
  • The use of quick styles is a great way to save _____.
    6·1 answer
  • Common input devices include the keyboard, ____, and integrated video cameras.
    12·1 answer
  • What is the advantage of using CSS?
    14·2 answers
  • Which option should she use to add the terms
    6·1 answer
  • How do u know when a website doesnt like u?
    11·1 answer
  • 100 in hexadecimal then. binary
    11·1 answer
  • Just a smol question how do i change my username on this?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!