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, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
Void printnum(int num) //line 1
{ //line 2
if (n < 0) //line 3
cout < <...
Questions
question
Biology, 04.08.2019 01:40
Questions on the website: 13722367