0

The following function converts a positive decimal number to base 8 and displays the result.

```
void displayOctal (int n)
{
if (n > 0)
{ if (n/8 >0)
displayOctal(n/8);
cout << n%8;
} //end if
} //end displayOctal
```

I have to trace the function with n = 100. Does this simply mean I have to replace 'n' with 800 and write it in pseudocode?

*Edited 6 Years Ago by C Newbie*: n/a