Question: 7 . 2 2 LAB: Swapping variables Define a function named swap _ values that takes four integers as parameters and swaps the first with
LAB: Swapping variables
Define a function named swapvalues that takes four integers as parameters and swaps the first with the second, and the third with the fourth values. Then write a main program that reads four integers from input, calls function swapvalues to swap the values, and prints the swapped values on a single line separated with spaces.
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
