subject

Given the function definition below, what is the effect of thecall:
change(ar, 0, n-1);
where n is the size of array ar?
void change(int ar[], int low, inthigh)
{
inttemp;
if(low< high)
{
temp= ar[low];
ar[low]= ar[high];
ar[high]= temp;
change(ar, low + 1, high - 1);
}
}
a. sort the first n elements of ar inascending order
b. reverse the first n elements of ar
c. switch the first and last elements ofar
d. sort the first and last elements ofar
e. none of the above

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 25.06.2019 06:30
How can u permanently delete a picture from your camera ?
Answers: 1
You know the right answer?
Given the function definition below, what is the effect of thecall:
change(ar, 0, n-1);
Questions
question
Geography, 28.09.2019 07:20
Questions on the website: 13722361