...

/

Example 66: Reverse an Array

Example 66: Reverse an Array

Learn how to reverse the elements of the array.

Problem

Write a program to reverse the contents of a 1D array.

Example

Suppose two arrays named arr and arr1 contains the following elements:

arr[ ] = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
arr1[ ...