Analyze the following code:
```
#include
using namespace std;
void xFunction(int x[], int length)
{
cout << " " << x[length - 1];
xFunction(x, length - 1);
}
int main()
{
int x[] = {1, 2, 3, 4, 5};
xFunction(x, 5);
}
```
A. The program displays 5 4 3 2 1.
B. The program displays 1 2 3 4 5 and then raises an ArrayIndexOutOfBoundsException.
C. The program displays 1 2 3 4 6.
D. The program displays 5 4 3 2 1 and then raises an ArrayIndexOutOfBoundsException.
D. The program displays 5 4 3 2 1 and then raises an ArrayIndexOutOfBoundsException.
You might also like to view...
In Excel, typing a ________ sets the number format to Currency
A) number sign B) asterisk C) percent sign D) dollar sign
Formatting a subreport in its own window offers more precision and options than trying to format it while it is in the main report window
Indicate whether the statement is true or false