Question: Points: Task 2: (15 Points) Create a main function and a function called swap. Take an array of ints. The aray must have a length
Points: Task 2: (15 Points) Create a main function and a function called swap. Take an array of ints. The aray must have a length > 5. Pass the integer array from main to swap function. The program will swap the last and first elements in the array [10, 7, 100, 651 435]-> [435, 7, 100, 65, 10] Output the original array and the swap values in the array Attach a snipping photo of source code and output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
