Question: Write a function that receives a StaticArray and reverses the order of the elements in thearray. The reversal must be done in place, meaning that
Write a function that receives a StaticArray and reverses the order of the elements in thearray. The reversal must be done in place, meaning that the original input array will bemodified, and you may not create another array nor need to You may assume that theinput array will contain at least one element. You do not need to check for this condition.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
