Respuesta :
Answer:
Hi!
The correct answer is E.
Explanation:
void change(int ar[], int low, inthigh) {
int temp;
if(low< high) { // here ask if the positions low and high of the array are the same.
temp= ar[low]; // first, saves the element on ar[low] in temp.
ar[low]= ar[high]; // second, the element on ar[high] in ar[low]. First switch.
ar[high]= temp; // third, saves the element on temp in ar[high]. Complete switch.
change(ar,low + 1, high - 1); // Recursive call, adding one position to low, and subtracting one position to high. Important: When low and high have the same value, the recursive call will finish.
}
}
Result: Switch the lower half of elements in the array with the upper half.