Reverse element in array without array reverse method [closed]

So since this is a homework question I am going to not provide you the full answer but instead give you some hints.

If you are allowed to make an additional array try the following: Create a new array that will contain the elements in reverse. iterate through your initial array starting from the end and moving to element 0. As you do so just set initialArray[i] = newArray[index] Note that i and index are just variables that I made up. Part of the difficulty of this assignment is figuring out how to do the assignment between the two arrays so I will leave that to you!

Feel free to ask any more questions and I can try to guide you to the solution.

Good Luck!

Leave a Comment