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...

Enter the lucky2.html text into a new Web page, then load the page in the browser to verify that it behaves as described.

Once you have done this, modify your pick4.html page from Exercise 7.6 so that it similarly makes use of a function in the HEAD. Your function should contain the code previously assigned to the button, and have a name descriptive of the task it performs, such as GeneratePicks or PickNumbers. You should then modify the button’s ONCLICK attribute to call that function.

Computer Science & Information Technology

To group adjacent worksheets:

A) right-click a worksheet tab and click Select All Sheets. B) click Group on the View tab. C) click Group on the Data tab. D) click the first worksheet tab, press and hold Shift, and then click the last worksheet tab.

Computer Science & Information Technology

When an IPsec communication begins between two computers, the computers first exchange ____ to authenticate the receiver and sender.

A. keys B. certificates C. passwords D. tickets

Computer Science & Information Technology

The first step in the work breakdown structure (WBS) approach encompasses activities, but not deliverables.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology