Give the output of the recursive function below when called with an argument of 5.

```
void recursive( int i )
{
using namespace std;
if ( i < 8 )
{
i++;
recursive(i);
cout << i << " ";
}
}
```

a) 6 7 8
b) 5 6 7
c) 8 7 6
d) 7 6 5
e) None of the above. This is an infinite recursion if the function is called with
argument 5.

c) 8 7 6

Computer Science & Information Technology

You might also like to view...

Which of the following is an example of a building block?

a. a Quick Part b. a Reference c. a Footnote d. a Style

Computer Science & Information Technology

MLA has recommended using footnotes instead of parenthetical information

Indicate whether the statement is true or false

Computer Science & Information Technology