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 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
You know the right answer?
Void printnum(int num) //line 1
{ //line 2
if (n < 0) //line 3
cout < <...
Questions
question
Social Studies, 16.07.2019 14:00
Questions on the website: 13722363