Answer:
Explanation:
The function was written in Java. It takes in an int array returns the same array but with the first and last elements swapped. A test array was used in the image below to demonstrate the output which can be seen in the bottom of the image in red.
public static int[] SwapArrayEnds(int[] myArr) {
int temp = myArr[myArr.length-1];
myArr[myArr.length-1] = myArr[0];
myArr[0] = temp;
return myArr;
}
Answer:
Network administrator and programmer.
Am still in A-level, am doing Physics, chemistry, Maths and ICT.
I have an A in physics, B in Chemistry and Maths and A† in ICT
To help us get news from different countries
I think it's the lest one: Rights given to original authors and creators to protect their work from unlawful use