Write a recursive void function that has one parameter which is a positive integer. When called, the function is to write its arguments to the screen backward: If the argument is 1234, the output should be. 4321.
What will be an ideal response?
```
void backward(int n)
{
if(n<10)
cout < n;
else
{
cout << n%10; // write last digit
backward(n/10); // write rest of digits (backwards)
}
}
```
You might also like to view...
If the same text or graphic is used frequently, you can store the text or graphic as a(n) ____________________ and then insert the stored entry in the open document, as well as in future documents.
Fill in the blank(s) with the appropriate word(s).
____ refers to the ability of an operating system to have more than one program open at one time.
A. Multidimensional B. Multiprogramming C. Polyprogramming D. Multitasking
A(n) ________ application can extend the functionality of mobile devices
Fill in the blank(s) with correct word
What is the difference between setting restrictions on formatting and editing?
What will be an ideal response?