Question: Task 1 : Swap elements in an array ( 8 points ) Please declare an array A in your data segment with 1 0 random
Task : Swap elements in an array points
Please declare an array A in your data segment with random integers. Program to find the
maximum number of A and put it as the last element in the array while other elements relative
order does not change. Then print to on the screen.
For example:
Input:
Output:
Test your program by giving different values to A Please save the screenshot of the two
following test cases:
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
