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 aThis 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!