Question: please help me with this question in C++ thank you 6.22LAB : Swapping variables Define a function named SwapValues that tfjes four integers as parameters
6.22LAB : Swapping variables Define a function named SwapValues that tfjes four integers as parameters and swaps the first with the second, and the thid 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. Ex: If the input is: 3824 function Swapvalues() returns and the main program outputs. 9.342 The program must define and call a function void SwapValues (Int8 userval1, int8 userval2, int8 userval3, int\& userVa14) Function SwapValues(b swaps the values referenced by the prameters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
