Question: Please, C++ programs pass by reference, not pointers. 5. Write a void function definition for a function called zeroBoth that has two call-by-reference parameters, both

Please, C++ programs pass by reference, not pointers.

 Please, C++ programs pass by reference, not pointers. 5. Write a

5. Write a void function definition for a function called zeroBoth that has two call-by-reference parameters, both of which are variables of type int, and sets the values of both variables to o. 6. Write a void function definition for a function called addTax. The function addTax has two formal parameters: taxRate, which is the amount of sales tax expressed as a percentage, and cost, which is the cost of an item before tax. The function changes the value of cost so that it includes sales tax

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!