QUESTION 9 There are several rules to keep in mind when writing a recursive function. Select all of them from the following list. A. The recursive function may not call any other function or method. B. The value of all arguments passed to the recursive tunction must change for every recursive cal. C. The recursive method must cali the main function in order to begin. D. There must be a clearly stated base case. E. The function must contain a break statement to end the recursion. OF. The recursive function may not include a return statement. G. Recursive calls to the function must converge on the base case. H. One or more arguments passed to the function must change in value each time the function is cailed.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 1TF
icon
Related questions
Question
QUESTION 9
There are several rules to keep in mind when writing a recursive function. Select all of them from the following list.
A. The recursive function may not call any other function or method.
B. The value of all arguments passed to the recursive tunction must change for every recursive cal.
C. The recursive method must cali the main function in order to begin.
D. There must be a clearly stated base case.
E. The function must contain a break statement to end the recursion.
OF. The recursive function may not include a return statement.
G. Recursive calls to the function must converge on the base case.
H. One or more arguments passed to the function must change in value each time the function is cailed.
Transcribed Image Text:QUESTION 9 There are several rules to keep in mind when writing a recursive function. Select all of them from the following list. A. The recursive function may not call any other function or method. B. The value of all arguments passed to the recursive tunction must change for every recursive cal. C. The recursive method must cali the main function in order to begin. D. There must be a clearly stated base case. E. The function must contain a break statement to end the recursion. OF. The recursive function may not include a return statement. G. Recursive calls to the function must converge on the base case. H. One or more arguments passed to the function must change in value each time the function is cailed.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning