Given the function definition below, what is the effect of the call
```
change (ar, 0, n-1);
```
where n is the size of array ar?
```
void change (int ar[], int low,
int high)
{
int temp;
if (low < high)
{
temp = ar[low]; ar[low] = ar[high]; ar[high] = temp;
change (ar, low+1, high-1);
}
}
```
a. First n elements of ar are sorted in ascending order.
b. First n elements of ar are reversed.
c. First and last elements of ar are switched. d. First and last elements of ar are sorted.
e. Largest integer in temp is stored.
b. First n elements of ar are reversed.
You might also like to view...
The ________ statement passes a value back to a function’s caller.
a. recover b. restore c. pass d. return
When implementing a method, use the class’s set and get methods to access the class’s ________ data.
a. public. b. private. c. protected. d. All of the above.
A database that allows data to be maintained in a single location provides data ________
Fill in the blank(s) with correct word
At a rented house that does not have Internet access, two people need to share files. Neither has a flash drive. What type of network would help in this situation?
A) Bluetooth B) Ad hoc C) WiMAX D) USB