subject

Void printnum(int num) //line 1
{ //line 2
if (n < 0) //line 3
cout < < "num is negative" < < endl; //line 4
else if (num == 0) //line 5
cout < < "num is zero" < < endl; //line 6
else //line 7
{ //line 8
cout < < num < < " "; //line 9
printnum(num – 1); //line 10
} //line 11
} //line 12

consider the accompanying definition of a recursive function. which of the statements represent the base case?

(a)-statements in lines 3 and 4
(b)-statements in lines 5-10
(c)-statements in lines 3-6
(d)-statements in lines 5 and 6

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 06:10
The head restraint should be adjusted so that it reaches a.the top of your ears b.the base of your skull c.the top of the head
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
You know the right answer?
Void printnum(int num) //line 1
{ //line 2
if (n < 0) //line 3
cout < <...
Questions
question
Mathematics, 15.06.2021 06:40
question
Mathematics, 15.06.2021 06:40
question
Computers and Technology, 15.06.2021 06:40
question
English, 15.06.2021 06:40