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
Scorpion4ik [409]
3 years ago
7

Give the difference betewen recursion and interation in C. Sight what are the advantages and their disadvantages?

Computers and Technology
1 answer:
mrs_skeptik [129]3 years ago
8 0
I believe you mean iteration. Recursion is when you have a function that calls or uses it's self. it's advantageous because it reduces the amount of code but can fall victim to an endless loop. Iteration is using a while loop or any kind of loop to iterate through a data set normally an array, iteration allows you to do an action for every iterated item but a downside is that it takes a long time to iterate and it is not efficient
You might be interested in
Which magazine loved their alienware test pc so much they didn't want to send it back?
dolphi86 [110]
Here is the answer. The magazine that loved their alienware test PC so much that they didn't want to send it back is the BOOT MAGAZINE, which is now known as MAXIMUM PC. This is based on one of the questions given by the Alienware <span>Arena Holiday Exam Scavenger Hunt Giveaway. Hope this answers your question.</span>
8 0
4 years ago
What is a help desk
vagabundo [1.1K]

Answer:

C: An individual who diagnoses and resolves users' technical hardware and software problems

6 0
4 years ago
I love the brainly update guys! :)
earnstyle [38]

Answer:

you mind if i take these points?

Explanation:

3 0
3 years ago
Read 2 more answers
Write a program that uses a custom function to return the cost of purchasing an item, possibly in multiple quantities. The item
alexandr402 [8]

Answer:

def cost(quantity, unit_price, taxable):

   if taxable == "Yes":

       total = (quantity * unit_price) + (quantity * unit_price * 0.07)

   elif taxable == "No":

       total = quantity * unit_price

   return total

q = int(input("Enter the quantity: "))

p = float(input("Enter the unit price: "))

t = input("Is %7 tax applicable? (Yes/No): ")

print(str("$" + str(cost(q, p, t))))

Explanation:

- Create a function called cost that takes three parameters, quantity, unit price, and taxable

- If the tax is applicable, calculate the total with tax. Otherwise, do not add the tax.

- Return the total

- Ask the user for the inputs

- Call the function with given inputs and print the result

3 0
3 years ago
In Microsoft Excel, you have a large dataset that will print on several pages. You want to ensure that related records print on
spin [16.1K]

Answer:

The answer is "Option D".

Explanation:

In Microsoft Excel, A dataset is a collection of the data. In other words a dataset is set of data like, Excel workbooks, spreadsheet tables, or table lists that are configurable objects storing the data. To print data sets related records on the same page we change the print at this data set only print the visible data, it will not print the confidential data. and other options are not correct that can be defined as follows:

  • In option A, It is not correct, because the set area used to select the area which you want to print.
  • In option B, It is used to print the same data on each page. it is not used in print page order.
  • In option C, This option is available on the Home tab that is used for page break only that's why it is not correct.
4 0
3 years ago
Other questions:
  • WordArt styles allow you to add ____.
    9·1 answer
  • REEEEEEE I STILL NEED MORE AESTHETIC USERNAMES TO GO OFF OF PWEASE HELP IMA HAVE A PANIC ATTACK!!!... next post ima do a vote :&
    13·1 answer
  • Which of the following is not the name of an air mass?
    7·1 answer
  • Assume that two parallel arrays have been declared and initialized: healthOption an array of type char that contains letter code
    13·1 answer
  • What type of IPv6 address should you use when you have multiple routers on a subnet and want hosts to use the nearest router for
    10·1 answer
  • Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo
    13·1 answer
  • The getting started screen in Microsoft publisher consists of which main parts?​
    7·1 answer
  • Please help me with this , I’m stuck and cannot understand this , please help me with this , I’ll appreciate it alot
    13·1 answer
  • does anyone know the what the tuition fee is for UC Berkeley PER YEAR. My smooth brain can't find it ANYWHERE.
    10·2 answers
  • The _________________ can be used to repair common causes of unbootable operating systems. It is based on the Windows Preinstall
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!