Show the output of the following program:

```
include
using namespace std;

void f(int n)
{
if (n > 0)
{
cout << n << " ";
f(n - 1);
}
} int main()
{
f(5);

return 0;
}
```

5 4 3 2 1

Computer Science & Information Technology

You might also like to view...

Which type of loop is designed specifically to use a subscript to access the elements of an array?

a. For…Next b. Do While c. Do Until d. For While

Computer Science & Information Technology

Spam filters are very effective for blocking any unwanted e-mail, but sometimes they can block legitimate messages.

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

Computer Science & Information Technology