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.

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
Get step-by-step solutions from verified subject matter experts
