Software Design Using C++Review of Functions and ParametersAnswering the QuestionYou selected Answer D, shown below. This is a correct solution to this part of the problem. Note how it uses a reference parameter Cost in which to send back the answer. The ampersand indicates that this is a reference parameter. Note that Answer A is also a correct answer.
Click on NEXT to work on rewriting the other function. You can go back to the overall review listing: Review of Introductory Topics. Back to the main page for Software Design Using C++ |