Question: 16. (10 pts) Assume the main function has two integer variables x and y. A call to function Swap is made from main to swap
16. (10 pts) Assume the main function has two integer variables x and y. A call to function Swap is made from main to swap x and y, please write the code for function Swap 17. (8 pts)What's wrong with the following function? bool Greater(int a, int b) if (a > b) return true; 18. (6 pts)What is wrong with the following function? vold Square(int& x) return e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
