Question: Write a function called swap ( ) that interchanges two int values passed to it by the calling program. ( Note that this function swaps
Write a function called swap that interchanges two int values passed to it by the calling program. Note that this function swaps the values of the variables in the calling program, not those in the function. You'll need to decide how to pass the arguments. Create a main program to exercise the function.
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
