//f) The base case is not explicitly listed. If you choose this answer, // then you must explain what the base case is.

Here is recursive function. Identify the recursive case and the default case.
```
void recursive( int i ) //a)
{
if ( i < 8 ) //b)
{
i++; //c)
recursive(i); //d)
cout << i << " "; //e)
}
}
```

The recursive case is line d), where the call to recursive with a larger value of i . The other answer is f). The base case is not explicitly listed.

The base case is the “do nothing” alternative of the if statement, which is !(i == 8). This corresponds to i>=8. If you call the function with arg 9, the base case is 9.

Computer Science & Information Technology

You might also like to view...

If none of the conditions specified in the IFS function are met, the function will return ________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Discuss the kinds of things that planners might consider when building a business impact analysis.

What will be an ideal response?

Computer Science & Information Technology