teresagonzalez9624 teresagonzalez9624
  • 12-04-2024
  • Computers and Technology
contestada

What does fun2() do in general?
{int fun(int x, int y) { if (y == 0) return 0; return (x + fun(x, y-1) ) ; } int fun2(int a, int b) { if (b == 0) return 1; return fun(a, fun2(a, b-1) ) ; }
a) x*y
b) x+x*y
c) xy
d) yx

Respuesta :

Otras preguntas

Which of the following evidence was used by the American Temperance Society in the excerpt to explain why people would join the temperance movement? A The abste
8)What number is 60% of 140?
Research and find: What are the significance of rotation of crops? What types of plants can be used for this purpose? Give reason for your answer.
How I can answer this question, NO LINKS, if you answer correctly I will give u brainliest!(I need the graph, not the amount of money per year)
Any thoughts? And what can I fix
PLEASE I NEED HELP I THINK THAT ITS EITHER THE SECOND OR THIRD IM NOT SURE Read the following passage from G.K. Chesterton's "The Philosophy of the Schoolroom"
Bag A 3Bag A Bag A has 3 yellow marbles, 2 red marbles, and 1 blue marble. Picking a red marble from Bag A is _______. certain likely unlikely impossible Bag B
What is the equation of the function shown in the graph, given that the equation of the parent function is f(x) = (1/3)^x A. g(x) = (1/3)^x + 2 B. g(x) = (1/3)^
Write a readable story on the basis of following outlines. A farm girl carrying a bucket of milk on head ... thinking about selling milk ...... selling it to bu
Read the following sentence: I am more likely to buy things if I am feeling happy. Which sentence has a similar meaning? The chances are high that I will buy so