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, 22.06.2019 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
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
History, 12.06.2020 19:57