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.

Computer Science & Information Technology

You might also like to view...

A control that retrieves its data from an underlying table or query; a text box control is an example of a bound control

a. Bound control b. Unbound control c. Calculated control

Computer Science & Information Technology

After something is placed on the Clipboard, use the ________ command to insert the copy somewhere else

Fill in the blank(s) with correct word

Computer Science & Information Technology