subject

Consider the following function: int func(int x){
if (x == 0)
return;
else if (x == 1)
return 3;
else
return (func(x - 1) + func(x - 2));
}
What is the output of func(4)?

Answer correct:

A)13

B)16

C)19

D)21

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
question
Computers and Technology, 25.06.2019 05:00
Which of the following statements best deceive the relationship between carrying capacity and population size
Answers: 1
You know the right answer?
Consider the following function: int func(int x){
if (x == 0)
return;
else if (x...
Questions
question
Mathematics, 13.10.2020 15:01
question
Mathematics, 13.10.2020 15:01
Questions on the website: 13722363