Question: Please include full code in C++ AND a screenshot of the output. 20 Points Please write two functions that can swap the value of two
Please include full code in C++ AND a screenshot of the output.
20 Points Please write two functions that can swap the value of two variables. The declaration of the first function is The declaration of the second function is void swap2 (int *a, int *b) As an example, suppose a=1 and b=2, after calling or in the value of a should be 2 and the value of b should be 1 . main() The first part in function is given as follows int a=3,b=1; swap1 (a,b); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
