Share
Explore BrainMass

C++ program cpp file and the executable file

1. It is not necessary to name your formal and corresponding actual parameters the same. What are the benefits of doing so?

2. Write a value-returning function that returns the sum of two numbers. Then write the code to produce the same outcome using a void function and passing variables by reference. In what situations might each be used?

Please include any references that will be of value. Thanks a lot…..

Solution Summary

C++ program cpp file and the executable file are also included.

$2.19