What does the following program do?
```
// What does this program do?
#include
using namespace std;
void someFunction( int [], int, int ); // function prototype
int main()
{
const int arraySize = 10;
int a[ arraySize ] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
cout << "The values in the array are:" << endl;
someFunction( a, 0, arraySize );
cout << endl;
} // end main
// What does this function do?
void someFunction( int b[], int current, int size )
{
if ( current < size )
{
someFunction( b, current + 1, size );
cout << b[ current ] << " ";
} // end if
} // end function someFunction
```
This program prints array elements in reverse order. The output would be The values in the array are:
10 9 8 7 6 5 4 3 2 1
You might also like to view...
10. C++ statements end with a
a. Period b. Comma c. Semicolon d. Nothing
Write an SQL statement that returns the names (not the Ids) of all students who received an A in CS305 in the fall of 2000.
What will be an ideal response?
Case PB 1-1Charlotte is working on a draft of her company's newsletter. She wants to establish some best practices regarding saving the file.Charlotte's boss suggested trying out a different layout and color scheme. Charlotte does not want to lose the work she has done, in case the new look does not turn out well. Charlotte should ____.
A. save two copies of the file with the same name B. save a copy of the original and a copy with the new changes C. save the publication only after trying out the new layout and color scheme D. save only the original publication
To enter a blank line into a document, press the ____ key without typing any text on the line.
A. CTRL B. ALT C. ENTER D. ESC