Question: This is for C++ please answer both questions 2. Write a program with a function of Call by Reference Parameters to swap the values in
This is for C++ please answer both questions 2. Write a program with a function of Call by Reference Parameters to swap the values in two variables Sample output: In main the two numbers are 5 and 7 In function, after swapping, the two numbers are 7 and 5 Back in main again the two numbers are 7 and 5 3. Write a program, which will invoke two functions from the main0 with same name but different signature to practice the function overload. Two methods are int Same (int a, int b) and int Same (int a, int b, int c). The first method should cause printing out "Divisible" if a is divisible by b, otherwise the method should return the remainder. The second method should return the average of a, b and c. Hint: you might need type casting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
