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

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.
Lun
A. The recursive function may not call any other function or method.
B. The value of all arguments passed to the recursive function must change for every recursive calL
OC. The recursive method must call tie main function in order to begin.
D. There must be a clearly stated base case.
CE. The function must contain a break statement to end the recursion.
OF. The recursive function may not include a return statement.
OG. Recursive calls to the function must converge on the base case.
H. One or mare arguments passed to the function must change in value each time the function is called.
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. Lun A. The recursive function may not call any other function or method. B. The value of all arguments passed to the recursive function must change for every recursive calL OC. The recursive method must call tie main function in order to begin. D. There must be a clearly stated base case. CE. The function must contain a break statement to end the recursion. OF. The recursive function may not include a return statement. OG. Recursive calls to the function must converge on the base case. H. One or mare arguments passed to the function must change in value each time the function is called.
Expert 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